Why can't I take input in neovim shell emulator in c++?

169 Views Asked by At

I just learned neovim and am planning to switch to neovim but I want to make it more like an ide. I know it's a text editor but it has a built-in shell emulator which is cool for seeing code output. but it's not interactive. My code:

#include <iostream>

using namespace std;

int main(){
    cout << "Enter name:";
    string name;
    cin >> name;
    cout << "Hello " << name << endl;                       
    return 0;
}

screenshot screenshot 2

But I can't give input to the program i wrote. Now i want to know if there's any way to make the output interactive.

Edit: problem kinda solved. setting up neovim for c++ in termux is a pain in the a55 so I'm using cppdroid

0

There are 0 best solutions below