GaijinPunch
MIS
Yeah, I know, this is really lame, but you have to start somewhere. I really only know bash/ksh and perl for the most part, but I'm the only one in my company that doesn't know C++, so I figured I'd better start.
I've been digging around on the net and have found some good information, but I think the way C/C++ works (different compilers, etc.) might be a bit troublesome for the from-scratch starter.
Anyways, on w/ my problems.
1: To learn the code, I'm just trying samples out in VI. The first, and most annoying, problem was that when I try to type a comment w/ "//" every succeeding line automatically starts with "//". Not sure what's up w/ that.
2: When I compile my "hello world" code w/ the g++ compiler (g++ hiworld.cpp -o hiworld) I get the warning about one or more deprecated or antiquated headers. The only header I've got is <iostream.h> so I assume that's the problem.
The code looks like:
#include <iostream.h>
int main ()
{
cout << "Hello World!";
return 0;
}
It compiles okay, other than the warning, but when I execute it - it doesn't print out the Hello World on the terminal.
Doing something obviously wrong?
Also - any links to Learn C++ tuturial pages for the absolute beginner would be appreciated.
I've been digging around on the net and have found some good information, but I think the way C/C++ works (different compilers, etc.) might be a bit troublesome for the from-scratch starter.
Anyways, on w/ my problems.
1: To learn the code, I'm just trying samples out in VI. The first, and most annoying, problem was that when I try to type a comment w/ "//" every succeeding line automatically starts with "//". Not sure what's up w/ that.
2: When I compile my "hello world" code w/ the g++ compiler (g++ hiworld.cpp -o hiworld) I get the warning about one or more deprecated or antiquated headers. The only header I've got is <iostream.h> so I assume that's the problem.
The code looks like:
#include <iostream.h>
int main ()
{
cout << "Hello World!";
return 0;
}
It compiles okay, other than the warning, but when I execute it - it doesn't print out the Hello World on the terminal.
Doing something obviously wrong?
Also - any links to Learn C++ tuturial pages for the absolute beginner would be appreciated.