Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't type anything while running code in netbeans

Tags:

c++

netbeans

Ok so I'm having troubles with netbeans. When I run the code I can't type anything, i can only paste something and that's annoying. Let's just have a very simple example, here's the code:

    #include <iostream>

int main() {
    int number;
    std::cout << "Give me a number: " << std::endl;
    std::cin >> number;
    std::cout << "You gave me " << number << ". Thank you." << std::endl;
}

Ok when I hit run it shows me "Give me number". Under that text there is a white box which becomes black when i click it and i can't type anything, so only way to move forward is copying the number and the paste it.

like image 906
Matti Meikäläinen Avatar asked Aug 07 '13 09:08

Matti Meikäläinen


1 Answers

You can try to change the console type :

Right click on your project > Properties > Run > Console Type

like image 59
Vincent Avatar answered Sep 29 '22 23:09

Vincent