// 读取字符串例子
#include
#include
using namespace std;
int main ()
{
string mystr;
cout << "What's your name? ";
getline (cin, mystr);
cout << "Hello " << mystr << ".\n";
cout << "What is your favorite color? ";
getline (cin, mystr);
cout << "I like " << mystr << " too!\n";
return 0;
} What's your name? Aqua
没有图片 用加载图片代替 或是预加载 延迟加载。