How do you make simple true-dos aplications?
How do you make simple true-dos aplications?
Quzah.Code:#include <iostream> int main ( void ) { cout << "Hello world!" << endl; return 0; }
Hope is the first step on the road to disappointment.
I Mean how do you compile them using Digital Mars Compiler so that theyl run in true-DOS.
Possibly. Without specifying, does it just default to 'std::cout'? I haven't looked into C++ streams enough to say for sure. Still, most examples you'll see in books dont' bother using std:: --Now this isn't to say they're correct either. I've seen incorrect books before.Originally posted by Dual-Catfish
Shouldn't you be using std::cout?
Quzah.
Hope is the first step on the road to disappointment.
Ah, well there you go. You should have actually posted this question first.Originally posted by Powerfull Army
I Mean how do you compile them using Digital Mars Compiler so that theyl run in true-DOS.
I've never used the DMC compiler. However I will say this: Depending on your OS, your program may not run in "true dos". Windows NT, XP, 2K, ME do NOT have a true dos. You cannot reboot into MS DOS mode on these machines.
And in the case of Win98/98SE/95, I can make youre "true dos" application run in Windows and there's nothing you can do about it.
It has to do with shortcuts / .pif files and settings you specify for the program.
Quzah.
Hope is the first step on the road to disappointment.
If your using the newer #include <iostream> version then you need to specify the namespace with std::cout or by declaring the objects with the "using" statement.....
If you use #include <iostream.h> you dont need to specify as it is all dumped into the global namespace.......but you are better off with the first method.
it is true dos, just in a window. there is a code to make it full screenw ithc i do not know. but in hte window there is a full screen window
No its not true DOS,its dos running in windows,im talking about DOS mode,no windows.
Asked and answered. This has nothing, let me repeat, NOTHING to do with your compiler.Originally posted by Powerfull Army
No its not true DOS,its dos running in windows,im talking about DOS mode,no windows.
If you want to run in DOS, reboot into DOS. If you want to run in Windows, run in Windows.
What you're asking is:
"How can I make the program forcibly reboot into DOS to run?"
And I'm answering:
"You do this to me an I'll give you one guess as to what program I'll never ever run again..."
Quzah.
Hope is the first step on the road to disappointment.