Sublime Forum

C++ Cin input

#1

When i compile a c++ program using the command+shift+b shortcut, and in the program there is a cin >> x line, it doesn’t ask me anything, how can i fix it?

Thank you in advance.

0 Likes

#2

I don’t think the output panel can accept inputs (there is probably a more technical description for this). You might look into plug-ins that provide some kind of terminal/console interaction. Someone else might recommend one :question:

Otherwise, I assume it would be possible to re-direct input from a text file(?) for testing purposes.

0 Likes