|
-
Nov 20th, 2002, 10:17 AM
#1
Thread Starter
Registered User
C and C++ waht is the defferent
what is the difference between C and C++ ?
best weshis
-
Nov 20th, 2002, 01:10 PM
#2
Monday Morning Lunatic
C is a primarily procedural language. C++ is derived from C, and is capable of being object oriented and generic as well.
You might want to find a good book though
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 26th, 2002, 03:02 AM
#3
Fanatic Member
Correct me if I'm wrong, but...
C is to C++ as basic is to Visual Basic.
C++ is an object-oriented language based on the C syntax and flow-control statements (i.e. 'if', 'while', 'for', etc). If you learn C++ without first learning C, you will have learned C by learning C++.
-
Nov 26th, 2002, 06:12 AM
#4
Hyperactive Member
C++ is an extension to C with STL, Clases(OOP Programming).
C is slightly harder to use. There a few things in C that are not used as much in C++, e.g. C-Style Memory Allocation Functions (malloc, calloc, realloc, free) etc. Instead new/delete is used.
-
Nov 26th, 2002, 06:55 AM
#5
transcendental analytic
Originally posted by made_of_asp
C++ is an extension to C with STL, Clases(OOP Programming).
C is slightly harder to use. There a few things in C that are not used as much in C++, e.g. C-Style Memory Allocation Functions (malloc, calloc, realloc, free) etc. Instead new/delete is used.
C is a lot easier but less flexible than the complex C++ to use, C++ is a multiparadigm language, an object orienter programming language (OOPL), procedural language and supports generic programming as well while C is a procedural language.
C is to C++ as basic is to Visual Basic.
C++ can't be compared with VB
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 26th, 2002, 12:03 PM
#6
Originally posted by agent
C is to C++ as basic is to Visual Basic.
Burn on the stake! 
You are wrong. Correction offered by kedaman.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|