Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


is this meant to open in a dos prompt window?

This topic is 6074 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve just started sams teach yourself c++ in 21 days (i''m on day 3) and in the book when you make all these little programs it guides you to make it says "Will print straight to the screen" now when i make and compile them a dos prompt window opens with the text/sum etc. printed. i just wanna check that they are supposed to be opening in a dos prompt window and i am not doing something hideously wrong, I am using the free borland compiler and i have a gui for it. Here is the thing.

#include int main() { std::cout << "Is this supposed to open in a dos prompt win the book says it prints straight to the screen (type something and push enter to close)\n"; int x; std::cin >> x; return 0; } and i have stuck it here if you wanna download it to see what i mean http://pcgaming.brinkster.net/dosornot.exe Please help. ---
Garcon Bifteck

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Yes that''s normal; only it''s called a console window, not a DOS-prompt window (many people are confused by the fact that DOS apps run in a console window). A win32 console application is just a ''normal'' win32 app with an automatically allocated console.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!