c++ - Why cout is producing no output on Code Blocks? -
#include <iostream> using namespace std; int main(int argc, char** argv) { cout << "whatever"; return 0; }
cout not work, nor printf, nor puts, nor anything. also, i've checked project properties , both debug , release set "console application" , "pause in end". makes no sense.
edit: also, i've tried flush endl before (no results).
i writing comment response: image shows option "-mwindows", removes console, said @ http://www.mingw.org/wiki/faq (mingw faqs)
how remove dos command windows? in link step add "-mwindows" switch command line.
Comments
Post a Comment