Code:
#include <iostream>
using namespace std;
int main (int argc, char *argv[])
{
cout << "hello mike!" << end1;
cout << "press enter key to exit!!" << end1;
std::cin.ignore(std::cin.rdbuf()->in_avail()+1);
system("PAUSE");
return 0;
}
So, I still don't know what is wrong. system pause don't seem to work either. I am getting these compile errors.
8 C:\Dev-Cpp\My code\test.cpp
(Each undeclared identifier is reported only
8 C:\Dev-Cpp\My code\test.cpp
`end1' undeclared (fi C:\Dev-Cpp\My code\test.cpp
[Warning] In function `int main(int, char**)':
rst use this function)
It still runs though.