Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: zdubair on November 17, 2015, 09:08:59 pm

Title: Hello says hello world
Post by: zdubair on November 17, 2015, 09:08:59 pm
Hi
I run this

#include <iostream>

using namespace std;

int main()
{
  cout << "Hello";
  return 0;
}

and it returns a window saying "Hello World"

How can  that be?

Greetings  zdubair
Title: Re: Hello says hello world
Post by: stahta01 on November 17, 2015, 09:20:31 pm
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Read and follow the link; if you fail to see the problem post full rebuild log!

Tim S.
Title: Re: Hello says hello world
Post by: scarphin on November 17, 2015, 11:02:18 pm
Have you tried and rebuilt your project successfully? Are you sure you are not running an old build?
Title: Re: Hello says hello world
Post by: zdubair on November 17, 2015, 11:13:13 pm
Hello,  tx for answers...
I had misunderstod how the program works and yes
it was an old build...
works fine now...