遊客:  註冊 | 登錄 | 幫助





標題: [討論] C 有好多種?
  Steven仔     Rank: 3
青出藍
性別 保密
UID 8071

精華 0
帖子 68
積分 170   詳情

閱讀權限 40
註冊 2006-8-20
來自
狀態 離線

 
 
 
 
發表於 2006-12-7 07:54 AM  資料  個人空間  短訊  加為好友 
C 有好多種?

我想問問..C我知有好多種..好似...
objective C, C++, C# 等等..
咁其實佢地有咩分別?
寫發係唔係一樣?
有冇什麼好既EXAMPLE可以解釋佢地?

頂部

mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2006-12-8 09:58 AM  資料  個人空間  短訊  加為好友 
咦?  我真係唔識得三言兩語講得晒佢地有咩分別喎。

C++ 係 object oriented (OO) 既 language﹐但 C 唔係。 syntax 就幾似﹐但寫法可以好唔同。 OO 好講究 reuse﹐設計時每每會將所有野諗成一個個唔同既 object﹐每個 object 之間既關係/特性...等。

C# 係 microsoft 響 C++ 變出黎既﹐C# 都係 OO﹐所以 同 C 一定唔一樣﹔ 至於同 C++ 唔同既地方﹐我就唔係太知勒﹐因為未掂過。

Objective C... 好似係建基於 C 之上既一隻 OO 版﹐應該係較為 Macintosh 果邊用多 d。

Examples 就由其他高手講啦﹐我知 d 唔知 d﹐費事講錯野!  

頂部



  ada     Rank: 2Rank: 2
藍之初
性別 女
UID 14987

精華 0
帖子 6
積分 100   詳情

閱讀權限 30
註冊 2006-11-1
來自
狀態 離線

 
 
 
 
發表於 2006-12-15 07:22 AM  資料  個人空間  短訊  加為好友 
c# actually is a copy cat of Java.
C# compiler didn't generate native binary code. C# binary need to run on rumtime.

頂部

  dramaking     Rank: 2Rank: 2
藍之初
性別 保密
UID 14978

精華 0
帖子 47
積分 100   詳情

閱讀權限 30
註冊 2006-11-1
來自
狀態 離線

 
 
 
 
發表於 2007-1-3 11:24 AM  資料  個人空間  短訊  加為好友 
C++ and C# are just two different languages. C# doesn't require header files which all code is written inline.
as Ada said, C# looks like Java, it runs in a framework, and the framework will do the garbage collection, so
it free programmer's burden and also will avoid the risk from having errors.
Also, C# doesn't support multiple class inheritance.

It sounds like that you don't know C/C++ and C#, why do you wanna know their differences?
Without knowing either one of the languages, it would be hard to understand and meaningless of knowing their differences.

anyway, I found something online which is about the C++ vs C#
http://blogs.msdn.com/ericgu/archive/2005/01/26/360879.aspx

if you wanna know more differences on coding, you probably can search a lot of sites from
Google which talk about that.

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-1-19 08:44 AM  資料  個人空間  短訊  加為好友 
diffrent between does really looks like java but there is also alot of diffrences. C# is develope by Microsoft and you can see C# as replacement for VB. C# require .net framework which I kinda like some function in the lib. I think mickeyGoUp have already answer your question.

頂部

快速美言
           


當前時區 GMT+8, 現在時間是 2024-11-27 08:10 AM

    Powered by Discuz!  © 2001-2007 Comsenz Inc.   
Processed in 0.012253 second(s), 9 queries

清除 Cookies - 聯繫我們 - LIPS Corner 新天藍 - Archiver