Help with saying hello world C++

I am trying to say hello world, but it is not working, after I want to do stuff.

1
2
3
4
5
import <iostream>

public static int main(String args[]){
   System.out.cout<<"Hello World";
}
That's Java, you're on the wrong forum.
No I am doing c++ not drinking coffee, you funny man.
1
2
3
4
5
6
#include <iostream>

int main() {
 cout << "Hello World" << endl;
 return 0;
}
I just see an image of a 12-year-old hitting F5 F5 F5 then saying to himself: HoRRAy, Th3y r3sp0nd3d, I got them good. Hahahah. You're wasting your own time.
lol @stewbond and I don't get why people troll for fun on forums
1
2
3
4
5
6
7
8
9
10
11
12
#include<iostream>
using std::cout; //print output
using std::endl; // end line -new line-

int main(){

//print Hello World + end line -new line-
cout<<"Hello World"<<endl;

return 0; //indicate successful termination
}//end main
Topic archived. No new replies allowed.