User forums > Using Code::Blocks

Run doesn't work.

(1/1)

eejin:
Hello.

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: ---#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;
}
--- End code ---

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.

Navigation

[0] Message Index

Go to full version