File contents of "cal.bat":
@echo off
echo Compiling and linking the C++ source code,
echo and preparing the executable for debugging...
g++.exe -Wall -g -o executable SourceCode.cpp
pause
File contents of "execute program.bat":
@echo off
executable.exe
pause
PS: The little "pause" command at the end of each file freezes the Command Prompt window until I press any key, which makes me able to see the contents of the window without it automatically closing right after the compilation or the execution of the program was complete...
Let the double-click heaven begin!!
No comments:
Post a Comment