Hi!
My name is reza.
I've just written my "hello world" program. It didn't work!
My code was:
-----
#include <iostream.h>
int main ()
{
cout<<"Hello world";
return 0;
}
-----
I am using Visual studio 2008.
At the end of compilling it give's me
-----
1 error(s), 1 warning(s)
-----
I don't know how to find the wrong part.
Can you help me please?
Actually, as a beginner it might be better to just specify the standard namespace with std::cout rather than confusing things with the using directive. It may mean a bit more typing but you avoid namespace clashes that could be very frustrating when you're just starting out.
BTW, if you look at the bottom window in VS2008 you should have an Output tab. That is the place where it will explain the errors and warnings. You will get a (sometimes) helpful error description and the line number of the code where the error occurred (or at least close).