Acclerated C——学习笔记1

#include "stdafx.h"
#include "iostream"
#include "string"


int main()
{
//INput your name
std::cout<<"Please input your name"<<std::endl;
std::string name;

std::cin>>name;

std::cout<<"Hello,"<<name<<std::endl;


return 0;
}

犯得错误:没有include string 给string写了h 毕竟这是C++ 导致它说不识别<<也是醉了。

 

posted on 2017-04-10 16:38  风筝缠绕  阅读(113)  评论(0编辑  收藏  举报

导航