Is there a way to make a c file (.c or .cpp) a standalone? [on hold]
I want to make it so it shouldn't open in my compiler but on it's own i.e
an "Executable" file. It's just a simple file for now:
/* C Test 1 */
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
main()
{
printf("Hello");
exit(0);
}
When I compile it (saving in the process) it makes a .cpp file. When I
open it, it gives me the option to open it in Dev C++, Code::Blocks or
Notepad; but I want it to not open in an editor, but on it's own. In
clearer words. I want it to open on a friends computer, which doesn't have
a compiler. And It can only open with a compiler now.
No comments:
Post a Comment