hey
which language is better c++ or c? and please give reasons
i am planning on learning one of them languages
thanks very much people.
hey
which language is better c++ or c? and please give reasons
i am planning on learning one of them languages
thanks very much people.
C is kind of Low-level, C++ is to. But C++ is more complex, and its faster than C when it is compiled.
So, I would go for C++, because when you know C++, you sure gonna know how to program in C.
I would go for something easy first, like python. ( Its good to combine some python and C++.. Python for simple big stuff, and C++ for more detailed main stuff with details etc ).. you are gonna need Python in the future
Python tutorial: http://www.ibiblio.org/obp/thinkCSpy/
C++ tutorial: http://www.cplusplus.com/doc/tutorial/
Learn Python first, then C++ and last.. C
well i know php,html pretty good made a few good sites with it. i think i'll go straight to c++
why would i learn c last? lol if c++ is better?
thanks again
C++ is more complex, and it has better memory managment +its faster
EDIT: Oh, and its OO( Object Oriented )
From what Ive experienced c is more for embedded programming, like microprocessors, the linux kernel etc. Where c++ being object oriented is better for desktop applications and the like.
So I guess you have to ask yourself, are you going to be developing an operating system or the next Openoffice.org?
Imagination is more important than knowledge
c++ it is then
thanks very much. any links for info about the STL? and programming for linux in c++?
thanks again.
That depends on the C/ C++ compiler. Comparing GCC and G++ indicates that there is very little difference between the two.C++ is more complex, and it has better memory managment +its faster
Look at http://shootout.alioth.debian.org/gp...=gcc&lang2=gpp.
Last edited by Lster; February 27th, 2007 at 01:09 PM.
C++ is basically C with classes. You can do any C command in c++. You are less susceptible to buffer overflows in c++ and passinig by reference is nicer and and and and....
C should have been retired long ago.
Not really true. For example, here is a line in C that won't compile in C++:
C++ is now also a lot more than C with classes (e.g. generics)Code:int class;
Not true.You are less susceptible to buffer overflows in c++
While I personally agree that it is nicer, this is not a globally true statement.and passinig by reference is nicer
Why? Use C when appropriate and C++ when appropriate.C should have been retired long ago.
As for the OP's question, I would suggest C++ if only for the STL.
When I invented the Web, I didn't have to ask anyone's permission.
~Tim Berners-Lee on Net Neutrality
-------------------------------------
Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).
Bookmarks