-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
  • 86,532
  • 28
  • 194
  • 218
user14445
  • 187
  • 1
  • 7

2 Answers2

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
  • 9,037
  • 7
  • 45
  • 73
-1

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

SynsMasTer
  • 11
  • 4