-1

So I just started programming, and the first app I made is supposed to print 'Hello World!' on my screen. So I copied the code

#include  <iostream>
int main()
{
    std:: cout << "Hello World!" << std:: endl;
    return 0;
}

But now I'm wondering: Where can I see it? Where can I see 'Hello World!' being printed on a screen?

p.s. - I'm using Microsoft Visual c++ 2010 express

CharlesB
  • 80,832
  • 27
  • 184
  • 208
user14445
  • 187
  • 1
  • 7

3 Answers3

3

It seems that somebody has copied your code and made a video for you. Nice!

podkova
  • 1,016
  • 6
  • 16
0

Modify your code to

#include  <iostream>
int main()
{
    std:: cout << "Hello World!" << std:: endl;
    std::cin.get();
    return 0;
}

What will this do that it will ask for a character input from you before exiting the console.

Saksham
  • 8,705
  • 6
  • 42
  • 67
-1

use function named getch();aft program waits to recieve keyboard's character. therefor you can see your output on console

SynsMasTer
  • 11
  • 4