I wrote a simple program in c++:
#include<iostream>
using namespace std;
int main()
{
cout<<sizeof(bool)<<endl;
return 0;
}
but when I compiled it with minGW and run it on windows7,a messagebox comeout saying Application stop working.but when I compiled it on linux with g++,it works well.How could this happen?
when I use printf on windows it works fine.Could anyone please explain why?
Are you sure you have the latest C++ libraries? in the old one it is just check this out.
and i think the new library is
std::cout<<""so i think you are using the old library. Try<iostream.h>