In SublimeText 2.0.1 I chose "Tools -> Build System -> C ++", created a project, added the following file:

#include <iostream> int main() { int a, b; std::cout << "Enter two values: "; std::cin >> a >> b; c = a + b; std::cout << a << '+' << b << '=' << c << std::endl; return 1; } 

Build completes successfully, but when I run Run, the string std :: cin >> a >> b; is skipped.

  • Are you sure that there is a terminal emulator in sublima? - Gordio
  • one
    At least there is room for output, and the output is working correctly. - Yalchik Ilya

1 answer 1

Can not.

Slightly can be solved through SublimeREPL by running a shell in it, but this is not a particularly universal solution.