I have a book that im reading that tells me i can use a .bat (batch) file to run and pause my program so it doesnt close imediatly. i know i can use
<system("pause");> but from what i have read thats bad practice.
My book said to open notepad (i used notepad++) and write
1 2
<filename>.exe
pause
and to run the batch file and the program will run and pause. i tried this and it did not work, i tried with notepad also thinking maybe notepadd++ wasnt the right program to do that sort of thing. i saved it with my .cpp file and also just on my desktop, and still nothing.
my question here is really is this something that is really necissary to learn how to do, or for all intents in purposes while i teach myself can i just use system pause. if it is something i should know how to do i would really appreciate some "guidence" on what to do here so i can know what i am supposed to do or where im supposed to save this .bat file.