1

Apologies in advance for the simple question, but where on earth do you type in input into codeblocks? I've searched through google, but I can't find anything.
For example, in eclispe, input can typed in via window->show view-> console. How do I access that in codeblocks? Thank you.

Cue me looking dumb in 3...2...1...

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190
Everyone_Else
  • 3,206
  • 4
  • 32
  • 55
  • Take a look [here](http://stackoverflow.com/questions/11888528/how-to-take-command-line-argument-in-codeblock-10-05) – pzaenger Aug 30 '14 at 16:08
  • @pzaenger that question address how arguments are passed in at runtime, not how to provide input during the execution of the program. – Tom Fenech Aug 30 '14 at 16:13
  • Do you mean `Menu bar -> Project -> Set program's options`? – jrok Aug 30 '14 at 16:17

2 Answers2

4

In CodeBlock when you build and run your code, a new terminal window opens (in windows a new console window) and you can enter your inputs there. it is not like eclipse that you enter your inputs in console view.

soheil_ptr
  • 101
  • 5
0

Go to File->new->Project->Console Application.

Type in the name of the project and just click forward to create it.

The project should come premade with a Hello World example. Just run it and you will get the console to appear, that is where you will provide both standard input and output.

David G
  • 94,763
  • 41
  • 167
  • 253