KDevelop不提示输入字符串
#include <fstream.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
string ifile;
cout < < "Please enter file to sort!\n ";
cin> > ifile;
cout < <ifile;
return 0;
}
有上面一段小程序,为什么在KDevelop下不提示我输入一串字符?
晕。
[解决办法]
cout < < "Please enter file to sort!\n " < < endl;
再试
[解决办法]
楼上的,这有何区别