Hi guys! I just installed dev-C++ to my computer and I created new source file. I wrote to source file: #include <iostream.h> void main() { cout << "Hello world!"; } PHP: Then I pressed execute => compile but it doesn´t work at all. It gives just this screend and doesn´t compile the file. http://img120.imageshack.us/img120/6341/screenhunter01oct172031jx2.gif Help! Thanks!
iostream.h is old, don't use it. Instead, using <iostream> and use std::cout. Also, your main function is in a bad format; you can obviously tell how old Dev-C++ is. I recommend you use a different IDE, like CodeBlocks (which is free; Google it).
Why are people still posting in this thread? <iostream>, std::cout << "Hi"; blah blah. And please, like I said, don't use Dev-C++.