The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


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 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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-21-2007
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
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++ ?
Reply With Quote
Forum Sponsor
  #2  
Old 05-21-2007
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
Sorry - maybe a silly question...
Whats the difference between c and c++ ?
Reply With Quote
  #3  
Old 05-21-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
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;
}
Clear as mud?

man cc
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0