PDA

Click to See Complete Forum and Search --> : C and C++ waht is the defferent


Visual Basic
Nov 20th, 2002, 09:17 AM
what is the difference between C and C++ ?
best weshis

parksie
Nov 20th, 2002, 12:10 PM
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 ;)

agent
Nov 26th, 2002, 02:02 AM
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++.

made_of_asp
Nov 26th, 2002, 05:12 AM
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.

kedaman
Nov 26th, 2002, 05:55 AM
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 :p

CornedBee
Nov 26th, 2002, 11:03 AM
Originally posted by agent

C is to C++ as basic is to Visual Basic.


Burn on the stake! :p

You are wrong. Correction offered by kedaman.