LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2002, 04:12 AM   #1
Daoc_junky
LQ Newbie
 
Registered: Nov 2002
Posts: 2

Rep: Reputation: 0
Major differences between C and C++


I am currently a 2 nd year computer science and was wondering what was the big difference betweem C and C++. I am learning C++ in school right now and that's about all I know. From looking at C code, it's seems like it uses alot of different functions for printing to the screen and taking input from the keyboard. Also from what I know C++ is object oriented and C is not. The last difference I have read about C++ is that it has alot more libarys availalbe for it (like the standard templete libary). So with all this said, is learning old school C even worth it anymore? Will I be okay in terms of editing source code for linux with my C++ knowledge?
 
Old 11-18-2002, 05:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
tried google?

http://cplus.about.com/library/weekly/aa010702a.htm
 
Old 11-18-2002, 02:18 PM   #3
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
You should learn Standard C, but it shouldn't be difficult if you are experienced in multi-paradigm Standard C++. Most systems are written in Standard C, while middleware is written in Standard C++. The thing is though that many systems employ an object based variety of Standard C, for example, a structure might contain pointers to functions, as opposed to class methods. I think that you still have to be able to read the old C stuff.
 
Old 11-18-2002, 02:26 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: Major differences between C and C++

Quote:
Originally posted by Daoc_junky
I am currently a 2 nd year computer science and was wondering what was the big difference betweem C and C++. I am learning C++ in school right now and that's about all I know. From looking at C code, it's seems like it uses alot of different functions for printing to the screen and taking input from the keyboard. Also from what I know C++ is object oriented and C is not. The last difference I have read about C++ is that it has alot more libarys availalbe for it (like the standard templete libary). So with all this said, is learning old school C even worth it anymore? Will I be okay in terms of editing source code for linux with my C++ knowledge?
Really, that depends m8 ...

The source code that you're editing is your own?
You'll be fine with your school knowledge....

You're trying to modify a kernel module?
Learn C & Linux system calls :}
http://www.cs.cf.ac.uk/Dave/C/CE.html
http://www.icce.rug.nl/documents/cplusplus/


Cheers,
Tink

Last edited by Tinkster; 11-18-2002 at 02:31 PM.
 
Old 11-19-2002, 12:24 AM   #5
Daoc_junky
LQ Newbie
 
Registered: Nov 2002
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks alot for the links tink, those are along the lines of what I was looking for.
 
Old 11-20-2002, 03:55 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by Daoc_junky
Thanks alot for the links tink, those are along the lines of what I was looking for.
Gidday, and no worries,
am glad if I can be of any help :}

Cheers,
Tink
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the major differences between Solaris and Linux? apache363 Solaris / OpenSolaris 42 09-30-2009 03:48 PM
Differences between 9.1 and 10 mikeymorgan Slackware 4 03-28-2005 04:42 AM
What are the major differences between FreeBSD and Linux? apache363 *BSD 45 05-14-2004 01:27 PM
Major MAJOR complaint... MasterC General 15 07-17-2003 04:15 PM
R and TM differences? mikeshn General 1 09-10-2002 08:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration