I'm trying to build a single C++ file that can take STDIN after building so I can test some single examples and see whether the code work. But it seems the default C++ build system won't be able to consume any input from STDIN. Is there a way to create my own build system to fix this issue?
Asked
Active
Viewed 464 times
0
-
1Why can't you just run your program from the terminal? – Praetorian Jun 10 '15 at 18:49
-
@Praetorian: There's no reason "I can't". I just want to know whether there is a way to run this naturally in Sublime Text. – derekhh Jun 10 '15 at 19:05
-
@Praetorian: And I don't understand why this gets an upvote as well.. – derekhh Jun 10 '15 at 19:05
-
@Siguza: I don't think this is a duplicate. That solution creates a file input directly. – derekhh Jun 10 '15 at 19:05
-
@derekhh Possibly because someone agrees with me that this isn't worth wasting time over. The linked duplicate does answer your question - *I don't think stdin is supported in Sublime Text*, and then suggests a workaround. Anyway, I'm not going to close it as a duplicate, hope you find an alternate answer. – Praetorian Jun 10 '15 at 19:16
1 Answers
1
I just ended up using terminal on OS X.
Someone asked this question earlier but I didn't end up trying it Sublime Text with console input for c++ programs

Community
- 1
- 1

Harman Brar
- 46
- 7