dev-c++如何显示输出
dev-c++如何显示输出
以下是我写的:
#include<iostream>
using namespace std;
int main()
{
cout << "hello";
return 0;
}
运行却没有显示输出
而以下是dev-c++自己带的例子:
#include <iostream>
using namespace std;
int main (int argc, char *argv[])
{
char quit;
quit = '\0';
while (quit != 'q')
{
cout << "Hello ! This is a console app." << endl;
cout << "To create a console, go to Project Options and select" << endl;
cout << "\'Win32 Console\'." << endl;
cout << "Press q to quit " << endl;
cin >> quit;
}
return 0;
}
这个运行后却有输出
这是怎么回事?