Tool to run C program, on Windows, with input in terminal
Tool is for Windows, it allows to run compiled C/C++ program in new console window. Text input will work in this console.
Example C++ program:
- #include <stdio.h>
- int main ()
- {
- int c;
- puts ("Enter text. Include a dot ('.') in a sentence to exit:");
- do {
- c=getchar();
- putchar (c);
- } while (c != '.');
- return 0;
- }
Tool props:
- Name: C - run
- File name: cmd
- Shell command: unchecked
- Parameters: /K "{FileNameNoExt}.exe"
- Alternative value: /C "{FileNameNoExt}.exe" && pause
- Initial folder: {FileDir}
- Lexers: C,C++
- Capture output: Ignore
- Encoding: utf_8
- Pattern: (empty)