![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beginner needs help with script | martyb555 | Shell Programming and Scripting | 2 | 02-16-2008 01:24 PM |
| Beginner Questions | Darin | UNIX for Dummies Questions & Answers | 3 | 07-16-2007 11:47 AM |
| AWK help please - beginner | COLLEGE | UNIX for Dummies Questions & Answers | 4 | 06-13-2007 07:40 AM |
| Please help. I am a beginner. | Lykathea Aflame | Shell Programming and Scripting | 1 | 04-26-2006 01:46 AM |
| UNIX beginner - I need help please | JennyW | UNIX for Dummies Questions & Answers | 2 | 05-09-2001 08:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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++ ? |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|