How can I create a c++ program using DOS
How can I create a program using DOS command prompt and how can I run and save the file?
Can you show me the procedures on how to do this?
How can I create a program using DOS command prompt and how can I run and save the file?
Can you show me the procedures on how to do this?
Hi Elizabeth,
In order to make the program start by making a DOS executable. A DOS executable is a program that is run through command window. These files can have extensions like.exe, .com, .bat or .cmd .vbs or .vbe.
In DOS and Windows, batch files are executed by the command interpreter. Note that
the command cannot contain spaces.
Open a notepad (or any other text editor) file and type your code in it.
Save the notepad file with a name say “program.exe” where .exe is extension for executable files.
Type the name of the executable file in the MS-DOS prompt and press Run. It will run the program and shows the output.
Hope this help!