The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2007
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
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++ ?
  #2 (permalink)  
Old 05-21-2007
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
Sorry - maybe a silly question...
Whats the difference between c and c++ ?
  #3 (permalink)  
Old 05-21-2007
porter porter is offline Forum Advisor  
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0