Anyone know where I can get started in C++ programming in unix?
Any good free tutorials or websites to start at?
I am okay in unix scripting but have never done c programming of any sort...
What are the main advantages of using C++ ?
Anyone know where I can get started in C++ programming in unix?
Any good free tutorials or websites to start at?
I am okay in unix scripting but have never done c programming of any sort...
What are the main advantages of using C++ ?
Sorry - maybe a silly question...
Whats the difference between c and c++ ?
There are four....
K&R C
-------
Kernighan and Ritchie C, this is what UNIX was first written in.
ANSI C
--------
Standard C, added prototypes, const and a few things. Most C code today is ANSI C.
Objective C
-------------
Really only used by NextStep/Apple.
C++
-----
C with classes etc.
The first program people normally write is "Hello World".
#include <stdio.h>
#if defined(__STDC__) || defined(__cplusplus)
int main(int argc,char **argv)
#else
int main(argc,argv)
int argc;
char **argv;
#endif
{
printf("Hello World\n");
return 0;
}
Clear as mud?
man cc