// my first program in C++
int main <>
cout << "hello world!"; >>
In the first line: #include <iostream.h> Remove the ".h" so it reads: #include <iosteam>
Also replace the <> in: int main<>, with () so it reads: int main().
Then get rid of the >> after "Hello World!"
Last but not least but a "/n" after the "!" but before the quotes like this: cout << "Hello World!/n";
What "/n" does is it moves the cursor down a line so that when Hello World! appears it isn't followed directly with Press any key to continue. Instead "Press any key to continue." would appear below Hello World. It just makes it easier to read. If you dont understand what I mean then run the program first without the "/n" and then run it with it in so that you see what I mean.
You also need to add: using namespace std;
below #include <iostream>
So finished with those adjustments your code should look like this:
using namespace std;
cout << "Hello World!\n";
Happy Programming. If you need help you can post again, PM, email, or IM me.
Also, what compiler are you using?