PuNkTuReD commented on a Page, Restart your computer  -  Jan 28, 2009

so i save this as a .exe ?
a little instructions would be nice

bbreck3  -  Jun 24, 2014

@PuNkTuReD
"a.exe" is the default output c++ executable file name. In other words if you compile your source code and give name specifics as to the name by default the c++ compiler will give it "a" for the name.

if you open command prompt and navigate to the directory where your code is, then type: "a.exe" it will run the program....
or just simply click on the executable for it to run.

if you want to give your program a name simply specify the name before you compile the .cpp file:

so...: g++ .cpp -o

of course omit the the greater than or less symbol respectively. "-o" stands for output. It specifies the output name for the executable it returns.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.