大家?guī)兔纯催@個(gè)有點(diǎn)問(wèn)題····
#include <iostream>#include <string>
using namespace std;
int main()
{ string str1;
string str2="You name is :";
cout<<"Enter you name "<<endl;
cin>>str1;
cout<<str2<<" "<<str1<<endl;
cout <<str1.size()<<endl;
string str3 =str1 +str2;
cout<<str3;
cin.get();
return 0;
}
最后運(yùn)行時(shí),運(yùn)行窗口只是一閃,窗口就不見(jiàn)了,請(qǐng)問(wèn)如何停留住運(yùn)行窗口····
posted @ 2011-05-01 17:23 singlestyle 閱讀(130) | 評(píng)論 (0) | 編輯 收藏