I am trying to do all the programs in Programming in C by Stephen G. Kochan as an exercise and to familiarize myself with some of the finer details (I didn't go to school for computer science) of C (on a Windows 8 machine).
A lot of the book is simple programs and I'd like to enter the programs with Sublime Text (as opposed to Code::Blocks, which I have been using with openFrameworks). Is there an easy way to launch a separate command window for a program after it is compiled.
It's kind of hacky, but I changed the "run" version of build to launch the compiled program
"cmd": ["${file_base_name}.exe"]
but apparently, the Sublime Text documentation says that GUI's are suppressed.
What I want to do is launch a separate command prompt window. The primary reason is that scanf
does not halt for input. Let me know if there is a quick workaround:
- some workaround in Sublime Text ( a setting I'm not aware of)
- how to change the build file to launch an actual window
- some way to easily launch a separate window in C