KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
On OS X Leopard, I am using Qt Creator as an IDE to work with C++. cout works fine as output, however, there is no way to provide input to cin as if it were on a console, like Visual Studio does for C++. An example: #include <iostream> #include <string> using namespace std; int main() { string name; cout << "Enter name: "; cin >> name; cout << "Your name is " << name << endl; } Is there a way to use a console or provide input to cin like in Visual Studio?
Tags (comma-separated)
Save Edits
Cancel