Author Topic: Run doesn't work.  (Read 2396 times)


  • Guest
Run doesn't work.
« on: April 17, 2011, 09:06:33 pm »

I'm totally new to Code::Blocks and to be honest new to C++ too.
Now I wanted to start simple and created a new project and typed this in the code editor thingy:

Code: [Select]
#include <iostream>
using namespace std;

int main ()
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "The value you entered is " << i;
cout << " and its double is " << i*2 << ".\n";
return 0;

Now I pressed build and then run but nothing seems to happen. Am I doing something wrong?[/s]

Sorry my excuse for placing this here. I've used the search tool and found my answer. Appearently I downloaded the wrong version of Code::Blocks without the compiler.
« Last Edit: April 17, 2011, 09:34:48 pm by eejin »