Author Topic: Hello says hello world  (Read 2739 times)

Offline zdubair

  • Multiple posting newcomer
  • *
  • Posts: 13
Hello says hello world
« 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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7666
    • My Best Post
Re: Hello says hello world
« Reply #1 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

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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Hello says hello world
« Reply #2 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?

Offline zdubair

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Hello says hello world
« Reply #3 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...