My version of Code::Blocks is just the one on the Ubuntu Software Center. I have mine updated to the latest version. The compiler I use is GNU GCC. My console program consists of only this:
Code:
#include<iostream>
#include<string>
using namespace std;
string answer;
int main() {
cout << "What is your name?" << endl;
cin >> answer;
cout << "Your name is " << answer << ".";
return 0;
}
I am able to run it using the "build and run" button in Code::Blocks but when I try to use the actual exe file nothing happens.
Bookmarks