Which is better?...C or C++

HI, I want to start programming....
but I don't know which one to choose...
Any C Hing can help or give some suggestions?

depend on your purpose

1. if the performance of your code is very important, or you are doing "low-level" programming, e.g. controlling a chipset, linux kernel, which need lot of hardware manipulation

    go for C

2. if you want to develop large scale software project, learn object oriented programming, want to write clean and simple code with less bug, performance of your code is not very important

go for C++/Java

TOP

先難後易
學左C++,之後咩language都好快上手
好多大學都係教C++先

TOP

回復 1# Overclocker

for educational purpose,  i would suggest first C then C++
learning C should give you a good foundation,  and C++ brings you to Object-oriented programming

however, for writing most program in practice, C++ is a more popular choice, exceptions are when the program needs extremely high performance/efficiency, or when you are writing low-level applications such as drivers or program for embedded devices

PS. C++ is a superset of C.  that means every valid C program is also a valid C++ program, but not vice versa.

TOP

C is the foundation of C++.

When you learn C++, you know C.

TOP

以我有限知識....syntax上你可以咁講,但寫program的方向係唔同。C++已經應該從Object Oriented方向寫

C is the foundation of C++.

When you learn C++, you know C.
henrywho 發表於 2011-9-13 18:06

TOP

回復 5# henrywho

>>When you learn C++, you know C.
you would still need certain knowledge of C.  since a lot of C++ syntax or paradigm are not applicable to C

TOP

la classique de answer: neither is better neither is worse

TOP

C is the foundation of C++.

When you learn C++, you know C.
henrywho 發表於 2011-9-13 18:06



    you don't actually understand C by learning C++
different paradigm

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

相關文章