#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;
}
最后運行時,運行窗口只是一閃,窗口就不見了,請問如何停留住運行窗口····
我在當前運行一個工程的時候,想改為運行另一個,不知道怎么做·········
直接按打開,然后可以打開cpp文件,但在運行時,總是顯示上一個工程,即使關掉上一個工程的編輯對話框也不行,
最后,只好把c++關了,然后再從新打開要運行的工程·····
請指點一下,自己弄了很長時間,都不知道怎么回事······