Advertisement

is this meant to open in a dos prompt window?

Started by November 05, 2001 12:16 PM
2 comments, last by garconbifteck 23 years ago
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. ---
-http://garconbifteck.cjb.net/
-www.pc-gaming.com
Garcon Bifteck
oops some of that didnt come out right.....






#include <iostream>



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;

}



---

-http://garconbifteck.cjb.net/
-www.pc-gaming.com
Garcon Bifteck
Advertisement
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.
ok thanks,
i didn''t know it was called a console window.
i think i was thinking what a console window was is infact a win32 window (i.e. notepad?)

---

-http://garconbifteck.cjb.net/
-www.pc-gaming.com
Garcon Bifteck

This topic is closed to new replies.

Advertisement