![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beginner needs help with script | martyb555 | Shell Programming and Scripting | 2 | 02-16-2008 10:24 AM |
| Beginner Questions | Darin | UNIX for Dummies Questions & Answers | 3 | 07-16-2007 08:47 AM |
| AWK help please - beginner | COLLEGE | UNIX for Dummies Questions & Answers | 4 | 06-13-2007 04:40 AM |
| Please help. I am a beginner. | Lykathea Aflame | Shell Programming and Scripting | 1 | 04-25-2006 10:46 PM |
| UNIX beginner - I need help please | JennyW | UNIX for Dummies Questions & Answers | 2 | 05-09-2001 05:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Beginner 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++ ? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Sorry - maybe a silly question...
Whats the difference between c and c++ ? |
|
#3
|
|||
|
|||
|
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". Code:
#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;
}
man cc |
|||
| Google The UNIX and Linux Forums |