LinuxQuestions.org
Register a domain and help support LQ
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, 05: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, 06:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
tried google?

http://cplus.about.com/library/weekly/aa010702a.htm
 
Old 11-18-2002, 03: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, 03:26 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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 03:31 PM.
 
Old 11-19-2002, 01: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, 04:55 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:48 PM
Differences between 9.1 and 10 mikeymorgan Slackware 4 03-28-2005 05:42 AM
What are the major differences between FreeBSD and Linux? apache363 *BSD 45 05-14-2004 02:27 PM
Major MAJOR complaint... MasterC General 15 07-17-2003 05:15 PM
R and TM differences? mikeshn General 1 09-10-2002 09:01 PM


All times are GMT -5. The time now is 09:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration