• Log in or sign up for an account here: https://www.sythe.org/login

C++ Question.

Trollologist

Newcomer
Joined
Jun 2, 2013
Sythe Gold
0
Messages
1
Location
Southington, United States of America.
So I am starting with C++ and I am reading some books, I just started with the Hello World programs, so I want to make sure this is correct.

#include <iostream.h> //Tells the compiler that there will be a cout or cin.


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

I would very much like all the feedback I can get, for I want to learn as much as I can.
 
Two Factor Authentication User
Easter 2015
Halloween 2015
Sythe's 10th Anniversary
That code doesn't work, try changing first line to:
Code:
#include <iostream> //Tells the compiler that there will be a cout or cin.
using namespace std;

Full code:
Code:
#include <iostream>
using namespace std;
 
main () {
  cout << "Hello World!";
  return 0;
}

Test your code online here: https://ideone.com/
 
duelarena.gg
Back
Top