This topic has been archived. It cannot be replied.
-
工作学习 / 专业知识杂谈 / 大家是不是都在用面向对象的编程方法? 感觉怎么样啊?我怎么感觉怎么这么难啊? 特别是一抽象起来
-guoluworker(锅炉工);
2006-3-3
{40}
(#2818039@0)
-
这种活, 干久了, 人会傻掉的. 没意思. Coding machine 一个.
-scottee(笑熬浆糊);
2006-3-3
(#2818047@0)
-
您老在干什么啊?
-guoluworker(锅炉工);
2006-3-3
(#2818052@0)
-
呵呵. 干革命.
-scottee(笑熬浆糊);
2006-3-3
(#2818065@0)
-
那做什么呢?
-guoluworker(锅炉工);
2006-3-3
(#2818074@0)
-
来抢白人的饭碗, 叫他们也做一下穷鬼.
-scottee(笑熬浆糊);
2006-3-3
(#2818078@0)
-
这里这么热闹.有朋友能帮我搞个C的环境吗?想学习学习.谢谢了.各位前辈.
-peter8540(皮蛋);
2006-3-7
(#2825105@0)
-
找小饭吧. 他有好几个平台. 他是高手
-scottee(笑熬浆糊);
2006-3-7
(#2825114@0)
-
你装个visual c++6/2005就可以了
-google2002(Google);
2006-3-7
(#2825175@0)
-
学习 c 还用visual c++? 太年轻了。bordland turbo c 2.0
-yr2much(伟大的豪哥的哥);
2006-3-8
(#2828265@0)
-
对呀,当然要用面向对象的方法,否则干起活来不把人累死!其实OO就是为了减少编程量和复杂程度的好方法把一切东西都看成对象,一切用class来完成,更复杂的用design pattern来设计
-binghongcha76(一只大猫);
2006-3-4
{71}
(#2818274@0)
-
C++除了GUI外,我还没有看见很成功的.至于ENCAPSULATION, C也可以做得很好.JAVA的思路很好,可惜太慢,而且开放性有点让人怀疑.我一直把JAVA是脚本来看的.那些设计语言的,我真是觉得很久没有什么进步.
-iwantcar(EnjoyStudying);
2006-3-4
(#2818357@0)
-
1.C++可以使用多态;2.C++可以用STL以及TEMPLATE,ACE类库支持. 就凭这这两点,对于绝大部分软件项目来说C++比纯C更合适
-google2002(Google);
2006-3-4
(#2818372@0)
-
就语言本身而言,VISUAL BASIC比什么都讨人喜欢.一个难学的语言,无论如何是不成功的.
-iwantcar(EnjoyStudying);
2006-3-4
(#2818401@0)
-
呵呵,这句话用到软件设计真是再精辟不过了。
-ccloafer(梦游加拿大);
2006-3-4
(#2818557@0)
-
我可不觉得C++比C难多少。没有了STL,你自己用C要写很久才能写出个list/index
-google2002(Google);
2006-3-6
(#2821860@0)
-
list/index is such a piece of cake for C programmer.
-iwantcar(EnjoyStudying);
2006-3-6
(#2822445@0)
-
这个就是开发效率的问题,你千辛万苦自己搞个普通的INDEX何必呢,性能估计也比不上STL,不MAKE SENSE. 再说LIST/MAP/MULTIMAP/VECTOR/QUEUE你有时间一个一个来IMPLEMENT?
-google2002(Google);
2006-3-6
(#2823750@0)
-
千辛万苦? come on. read my message again. I am confident in my programming ability. My code is better than STL for my specific applcation for sure. And clearer because it is specific cut for my purpose.
-iwantcar(EnjoyStudying);
2006-3-7
(#2823806@0)
-
自信的程序员太多太多,这么自信的不多见,呵呵
-winterbear(Hibernate);
2006-3-7
(#2824068@0)
-
Using the time spent on the studying of STL, you can write it. For example, sometimes you have the source of some program, you still want to write a version of yourself. For closed source libraries, I really hate it.
-iwantcar(EnjoyStudying);
2006-3-6
(#2823816@0)
-
I also have my own version of index/list, which is to operate the virtual memory/paged memory allocated myself. However, in most cases STL works better and has less coding work. It only took me 2 days to learn STL.
-google2002(Google);
2006-3-7
(#2823849@0)
-
which version of STL? Do you know most STL has bugs? Don't tell me there are no bugs in STL.
-iwantcar(EnjoyStudying);
2006-3-7
(#2823874@0)
-
I have used STL in g++2.9.6/3.2.3/3.4.3 on Sol6/7/8/9,Redhat7/8/9,Suse,UnitedLinux or Windows' STL . The STL bugs only appear in some special OS like HP-UX or exteneded version such as STLPort.
-google2002(Google);
2006-3-7
(#2823886@0)
-
任何程序都有可能存在bug。如果STL有的东西你不用,同样的功能你就需要自己实现或者用其他的库,不要说你自己实现或者别的实现就没有bug。实际上,STL经过千锤百炼,同样功能的程序中,bug一定会少于你自己写的代码的。
-winterbear(Hibernate);
2006-3-7
(#2824067@0)
-
经过千锤百炼 IS MS WINDOWS, BUGS IS ALMOST COUNTLESS.
-iwantcar(EnjoyStudying);
2006-3-7
(#2824223@0)
-
windows一直在加新东西进去,除了名字还叫windows以外,什么都变了。
-winterbear(Hibernate);
2006-3-7
(#2824315@0)
-
win 98 is almost obsolete.
-iwantcar(EnjoyStudying);
2006-3-7
(#2824320@0)
-
对啊,windows是个商业性的操作系统,微软靠不停地换代来赚钱,不停地推出新版本,这样的东西怎么能和STL相比呢
-winterbear(Hibernate);
2006-3-7
(#2824359@0)
-
STL既然不加新东西, 又如何千锤百炼了?算了,不想再说了.
-iwantcar(EnjoyStudying);
2006-3-7
(#2824372@0)
-
我真怀疑你用过STL没有
-google2002(Google);
2006-3-7
(#2824401@0)
-
STL,你是用它的观点.我是SUPPORT它的VIEWPOINT,STL总要在操作系统上运行吧,如果操作系统UPDATE了,有BUG了,用STL不就死翘翘了,办法吗?等UPDATE STL?
-iwantcar(EnjoyStudying);
2006-3-7
(#2824562@0)
-
照你这说法你现在就别做程序员了,反正OS的BUG肯定影响你的程序,等哪一天完美无BUG的OS出来你再写程序吧。我已经开始怀疑你是否写过程序了
-google2002(Google);
2006-3-7
(#2824786@0)
-
凭什么说难学的语言就不成功呢?如果说是易学好用,VB是成功的。但就效率、性能、应用面而言,VB根本不值一提。有相当多的系统是VB根本实现不了或做不好的,比如操作系统、图形处理、大型游戏,等等。总的来说,VB只是个玩具而已。
-lovedriving(LoveDriving);
2006-3-7
(#2825939@0)
-
我觉得您可能是C方面的大拿,但是对OOP/Java这些东西知道的不深
-winterbear(Hibernate);
2006-3-4
(#2818399@0)
-
和匈奴打仗用骑兵,和南越国作战用山地步兵,和孙吴作战用水军。
-frankwoo(柳五随风);
2006-3-4
(#2818402@0)
-
军师错也! 和匈奴打仗该用藤甲兵砍马脚,和南越国作战该用神火营放火烧山,和孙吴作战就只能用推土机了.
-500m(500M);
2006-3-4
(#2818785@0)
-
那不还是要采用不同的东东?:)
-frankwoo(柳五随风);
2006-3-4
(#2818799@0)
-
关键是要用最合适的东东.
-500m(500M);
2006-3-4
(#2818805@0)
-
这合适学问就大了,使你自己合适呢,还是适合于外部环境呢?,若敌军都几经OO了,你还ASM死抱着不放,对你自己是合适了,可放置于大环境来说就是不合适了。是不是这道理?:)
-frankwoo(柳五随风);
2006-3-4
(#2818820@0)
-
神辫换成神枪, 东西换了, 神留着.
-500m(500M);
2006-3-4
(#2818828@0)
-
说到我心眼里去了!一直想找一个在非gui平台用oo开发应用的人聊聊,问问他们是怎么建立对象的,至今没找到。
-aka(棒棒);
2006-3-4
(#2818549@0)
-
一个人应该用“他/她”。扣10分。
-ccloafer(梦游加拿大);
2006-3-4
(#2818564@0)
-
上帝,你是天才!
-aka(棒棒);
2006-3-4
(#2818598@0)
-
:)
-choice(水中花);
2006-3-5
(#2820383@0)
-
我们TEAM主要开发UNIX下的分布式服务器,全部代码都用C++的,模板,类库,STL/ACE都用
-google2002(Google);
2006-3-6
(#2821858@0)
-
有谁00过一个BRANCH,一个STORE,一台ATM,一个CUSTOMER,一个商品,一个零件,一张信用卡?这些最MAKE SENSE的OBJECT?
-aka(棒棒);
2006-3-6
(#2823319@0)
-
OO里面de面向对象指的是面向role,不仅仅是客观世界的完全影射。所以branch在面向对象的世界里如果没有role 的responsibility就不认为是Object.
-frankwoo(柳五随风);
2006-3-6
(#2823484@0)
-
我觉得在UNIX下开发分布式程序,每一个MESSAGE就是一个CLASS,我的程序主要就是怎样处理这个CLASS,和你说一个商品,一个零件没有任何区别。我最近写的一个UNIX服务器程序就用了52个C++类和模板
-google2002(Google);
2006-3-6
(#2823742@0)
-
我可以保证:你的程序的效率绝对不高!你的程序如果要一秒钟处理几K个消息,想象一下.
-iwantcar(EnjoyStudying);
2006-3-6
(#2823830@0)
-
以前在国内写的C++网关程序,每秒处理2000条复杂数据(xx移动自己测出来的数据).我自己写过最快的C++程序是一个基于BDB的文件存储系统,在pc服务器上每秒可以插入1万多条200字节的数据
-google2002(Google);
2006-3-7
(#2823854@0)
-
2000条,消息有多少种呢?都是如何处理的?
-iwantcar(EnjoyStudying);
2006-3-7
(#2823880@0)
-
一般UNIX程序员都会问程序分布在多少台服务器上而不会问多少个类,因为消息和CLASS个数并不会影响性能。不过我可以告诉你核心业务消息大概30多个,算上统计,SNMP,计费,数据追踪,信息过滤监控大概100-120种消息,用ThreadPool+MessageQueue处理
-google2002(Google);
2006-3-7
(#2823892@0)
-
才30多个,如果消息类别多的时候,你想OO,还要PEFORMANCE就不行了.你的经验估计没有这条.用理论想想吧.要不你写个DISPATCH MESSAGE的OO程序给我看看,我倒要见识一下了.
-iwantcar(EnjoyStudying);
2006-3-7
(#2824032@0)
-
和你讨论这个话题已经没有什么意义,不知道你有多少UNIX开发经验,总之我写UNIX服务器开发时候根本就没考虑c++还是c的问题,写到某个部分觉得哪个合适就用那个。我的代码不方便给你看,你想参考的话可以看ACE类库里面的ACE_Task类另外消息只是指协议里面的一个packet, request or response.
如果是说class一共有400多个class
-google2002(Google);
2006-3-7
{89}
(#2824171@0)
-
你的脾气很好,我其实早就想打住了.只是想说:这个DISPATCH我用C写过,嘿嘿,开始还想用ASM写了,其实性能影响很大.
-iwantcar(EnjoyStudying);
2006-3-7
(#2824236@0)
-
2000条分布在多少台服务器?
-iwantcar(EnjoyStudying);
2006-3-7
(#2824034@0)
-
不会吧。很多大的EMBEDDED SYSTEM都是OO DESIGN的。
-wade(blank slate);
2006-3-5
(#2820861@0)
-
detail??
-iwantcar(EnjoyStudying);
2006-3-6
(#2822438@0)
-
什么样的DETAIL呀?TELECOM的不少公司项目都是C++,OO DESIGN的。可能BOOTING
PART很少有C++的,但高一点的就是了。
-wade(blank slate);
2006-3-6
(#2823510@0)
-
楼上六窍皆通!
-500m(500M);
2006-3-4
(#2818378@0)
-
人有七窍,通六余一,--一窍不通?:)你可够可以的,拐着弯的骂人:)
-frankwoo(柳五随风);
2006-3-4
(#2818481@0)
-
如果写过很久面向过程的程序,这个弯确实挺难转的,我看过不少senior写的java程序脱不了面向过程的思维。相反现在的学生倒没这困难,他们一开始就从OOP学起。Thinking in Java/Thinking in C++挺适合熟悉面向过程的人,值得一读
-winterbear(Hibernate);
2006-3-4
(#2818310@0)
-
senior != old,就是这道理。
-frankwoo(柳五随风);
2006-3-4
(#2818403@0)
-
OOA/OOD/OOP的顺序很重要,另外oo需要有很长时间de公里,个人认为至少5年。
-frankwoo(柳五随风);
2006-3-4
(#2818383@0)
-
在1994年,当时我的导师问过我们几个学生什么是OO,他和面向过程的分析,设计,编程有什么不同。结论:从分析设计阶段就要改变思路, 否则OOP是累赘,摆设.
-mikesmith(老猫);
2006-3-4
(#2818596@0)
-
说的这么好,不得不顶一下。
-aka(棒棒);
2006-3-4
(#2818601@0)
-
多谢,可惜不做编程很多年了。当初立志此生不再编,现在看老婆作J2EE, 手痒。
-mikesmith(老猫);
2006-3-4
(#2818713@0)
-
J2EE从很多方面来说,应该是相当的不OO吧? DB OO了吗? EJB OO了吗? Servlet OO吗? 几年前开始,很多人就努力想把Web Tie OO 化一点, HTML OO了吗? 你OOOOOOOOOOOOOO了吗?
-3amigos(三架马车);
2006-3-4
(#2818754@0)
-
What is an "Object" - Everything. From analysis, design to implemeantation, if you have an "O" at heart, you can build OO even with Forth.
-mikesmith(老猫);
2006-3-5
(#2820753@0)
-
It depends on from what level you are looking at the program - when you are too much into details, you may be lost in Hibernation, Spring, MVC framework. But....
-mikesmith(老猫);
2006-3-5
{731}
(#2820785@0)
-
不一定, OO 有时是事倍功半. 但是不懂OO也是不行滴.
-500m(500M);
2006-3-4
(#2818389@0)
-
没错,OO有时候就是包着糖衣的毒药。
-guestagain(guest again);
2006-3-4
(#2819314@0)
-
Form a long term view OO absolutly release a lot burden for programmer provided by it's extendablity. It's also more flexiable base on using delegation
-simonqu(后悔);
2006-3-4
(#2819325@0)
-
Right!
-choice(水中花);
2006-3-5
(#2820420@0)
-
说实在的,俺什么语言都不会,什么Business Knowleddge也没有. 至今也没搞明白为什么有人要请我. 我到底会什么? 我是谁? 我想干什么? 要往哪里去? 每天这些问题都在困扰着我. 想得头昏脑胀的时候就来这里灌水.
-3amigos(三架马车);
2006-3-4
(#2818740@0)
-
没有电脑文凭,没受过正规训练,没有证书,没有正式的工作,没有理想,没有目标,没有人生,....., 我就一混混.
-3amigos(三架马车);
2006-3-4
(#2818746@0)
-
老板娘看上你了
-jacky2001(beyond);
2006-3-4
(#2819291@0)
-
我认为程序员这种活迟早会转移到印度和中国去, 所以还是考虑回流或者转行.
-hello2005(chinada);
2006-3-4
(#2819088@0)
-
如果你只是个人云亦云,不会独立思考的程序员.
-500m(500M);
2006-3-4
(#2819176@0)
-
Programming language doesn't change much since C became available. The key is memory management no matter it's functinal. procedual or OOP.
-simonqu(后悔);
2006-3-4
(#2819281@0)
-
On implementation level the main difference between C AND C++ are Vrtual Table and Dynamic Binding
-simonqu(后悔);
2006-3-4
(#2819290@0)
-
Have a look on Bjarne Stroustrup - The C++ Programming Language and GO4 Design Pattern. I didn't see any books over them so far.
-simonqu(后悔);
2006-3-4
(#2819292@0)
-
Do not treat OO as something only happens in programming. It happens anyware if you're trying to do some abstract think.
-simonqu(后悔);
2006-3-4
(#2819301@0)
-
I can not agree more.
-choice(水中花);
2006-3-5
(#2820423@0)
-
Understanding on memeory will help you understand questions like why JAVA don't create object on stack but C++ can? What's the difference between call back and event drvien? Why java don't pick multi inheritance
-simonqu(后悔);
2006-3-4
(#2819321@0)
-
good points
-maple2000(等待着夏天);
2006-3-4
(#2819581@0)
-
you really understand C/C++
-goodchoice(buff);
2006-3-4
(#2819533@0)
-
From language aspects, there's no really OO Language or Functional Language. When we refer Java or C++ are OO Languages and C is functional language. It really means they have better support of OO Concepts
-simonqu(后悔);
2006-3-4
(#2819629@0)
-
By direct memory control on memeory, implementing Virtual Table and Dynamic Binding, you can convert C into a simplified C++, which has a limited feather on polymophism, encapsulation and inheriance
-simonqu(后悔);
2006-3-4
(#2819637@0)
-
You can see here. The OO is a concept which is not related what language you pick.
-simonqu(后悔);
2006-3-4
(#2819645@0)
-
I started from C and quickly changed to C++. I didn't do any java befor, but I didn't see any difficulties on picking up any new languages. My point is focuing on OO concept and memory instead of languages
-simonqu(后悔);
2006-3-4
(#2819659@0)
-
佩服, 有什么好的书或online book 关于 memory managemen 谢谢
-howcanido_helpme(howcanido);
2006-3-5
(#2820160@0)
-
Sorry, I don't really have any recommandations here. The memory management scatter around into OS, compiler and programming language.
-simonqu(后悔);
2006-3-5
(#2820206@0)
-
u must be kidding ...
-ra_95(小人*碎幻江南);
2006-3-6
(#2823801@0)
-
Which part is the kidding part?
-simonqu(后悔);
2006-3-8
(#2826109@0)
-
What a misleading statement? Did you ever hear about SmallTalk and Lisp? SmallTalk is a pure OO lanaguage and Lisp is a functional language. C is never a functiona language. Instead, it is a procedural language.
-lovedriving(LoveDriving);
2006-3-7
(#2825951@0)
-
Sorry, you are right. C is a procedural language. What's other misled statement?
-simonqu(后悔);
2006-3-8
(#2826106@0)
-
One of the biggest mistakes in the computer science / technology history is that C++ was a totally mis-leading name.
-wukongjj(菁菁悟空);
2006-3-5
(#2820828@0)
-
It gave people an illusion is that if you know C, then it's easy to move on to C++. In fact, it is very hard, if it is not impossible.
-wukongjj(菁菁悟空);
2006-3-5
(#2820830@0)
-
For a senior C engineer, it takes him/her many years before he/she can claims he/she is now comfortable in OOP.
-wukongjj(菁菁悟空);
2006-3-5
(#2820832@0)
-
That explains, as indicated by other folks, though C++ is better than C, in reality there are more applications implemented using C rather than C++.
-wukongjj(菁菁悟空);
2006-3-5
(#2820834@0)
-
I can't agree you on this although this rumor ever be popular. This is only an excuse for the people who's not really master C and neither get a clear OO concept
-simonqu(后悔);
2006-3-5
(#2820855@0)
-
In the real world, C and C++ are different roles. C is faster than C++ ON SYSSTEM LEVEL for the reason that C doesn't have any the runtime feathers which are very important to C++.
-simonqu(后悔);
2006-3-5
(#2820859@0)
-
C is faster than C++?你好像不知道C/C++都是要编译成目标码的?运行速度的快慢和编译器以及编译时的选项有关,和用C还是C++写成的有什么关系...
-winterbear(Hibernate);
2006-3-5
(#2821445@0)
-
In the early days C++ is tranfered to C during compiling and in this operation C++ generate larger code.
-simonqu(后悔);
2006-3-5
(#2821629@0)
-
我用的第一个C++编译器就是先编译到C的。假设一个程序a.cpp,编译到a.c,再编译到目标码。你能说a.c比a.cpp快吗?
-winterbear(Hibernate);
2006-3-5
(#2821648@0)
-
I can't say that because they're identical on the higher leverl. It's the different situation than my assumption.
-simonqu(后悔);
2006-3-5
(#2821687@0)
-
so could you please explain your assumption? what do you think makes c++ slower than c?
-winterbear(Hibernate);
2006-3-5
(#2821726@0)
-
I assume that the same code wittern in C and C++. Without any optimization, C++ will produce a larger object than C and concequently the machine code is larger and need more time to excute
-simonqu(后悔);
2006-3-6
(#2821737@0)
-
first, larger code is not necessarily slower. second, in real world we DO enable optimization feature of compiler.
-winterbear(Hibernate);
2006-3-6
(#2821748@0)
-
That's the difference between theriotical and practial. It already beyond the scope of our discussion.
-simonqu(后悔);
2006-3-6
(#2821753@0)
-
当你说C比C++快的时候你到底说的是现实中还是理论上?现实中,我没看到任何证据显示C比C++快;理论上,我也没看到任何理由说C比C++快。如果你说C比C++快是你的“感觉”,那我没有任何意见。
-winterbear(Hibernate);
2006-3-6
(#2821785@0)
-
I want to keep this discussion professional. I only provide my opinion no matter it's correct or wrong. C++ produces larger object file is a fact. Please don't shoot anything personal.
-simonqu(后悔);
2006-3-6
(#2821803@0)
-
您在暗示我不professional?呵呵...professional恰恰是我想说的我所认为的professional,是立论要摆事实讲道理。您说C比C++快,或者您从您的experience出发,您实际比较了C和C++的速度得出这个结论;或者您从理论出发,在逻辑上论证C应该比C++快。这两条路任何一条都可以说是professional的。
但遗憾的是,您只有一个opinion,和一个不相干的"fact",即C++的object file更大,这算哪门子professional?
只是针对这件事,没有对人。don't take it personally
-winterbear(Hibernate);
2006-3-6
{370}
(#2822311@0)
-
NO, there's no hints here. If I do offence you at any point it's my sorry and I apologize for anything it ever brougt about.I can't see where is the difficultity to be understood that a bigger object file will consequently lead to a larger size of machine code. A larger-size machine code will lead to longer excution time and larger foot print in the memory
-simonqu(后悔);
2006-3-6
{235}
(#2823227@0)
-
A larger-size machine code will lead to longer excution time? 您该不会不知道inline function吧...在programming里空间换时间时间换空间的做法很普遍,您怎么能得出大就会慢这样的结论呢
-winterbear(Hibernate);
2006-3-6
(#2823559@0)
-
Context switch will slow down excution. Larger object needs longer time to load, it also cause larger footprint in the memory. It will finally slow down the excution.
-simonqu(后悔);
2006-3-7
(#2825489@0)
-
C++ has more hidden fields, constructor and destructor. constructor and destructor will be called during the excutiion.They become overhead during excution.
-simonqu(后悔);
2006-3-7
(#2825492@0)
-
Again, during discussion, please don't mention me.It doesn't help anything, Even we can't reach out on some point this discussion will benefit a lot of people who's interested in the process of interview.
-simonqu(后悔);
2006-3-7
(#2825501@0)
-
take it easy, nobody knows who you are and nobody really cares. it seems that you care so much of YOUR opinion and youself.i just wanna talk about what is correct and what is wrong. even i mentioned you i didn't mean anything and no offense intended. yes i was not serious when i mentioned you, for sure i was not judging you. but it seems that you are so serious of it and you actually crossed the line to tell me what not to do...
-winterbear(Hibernate);
2006-3-7
{310}
(#2825797@0)
-
Assume you write a public object in C++ and a structure in C with the same fields. Any C++ object has hidden fields like run-time ID and reference counter and that makes the object file of C++ BIGGER than C class file
-simonqu(后悔);
2006-3-6
(#2821749@0)
-
Compare 2 language and draw a conclution on which one is better without any condition are childish. There's no language better than another one. Do you think English is better than Chinese?
-simonqu(后悔);
2006-3-5
(#2820871@0)
-
English和Chinese是平行的语言,但C和C++并不是平行的关系,后者是前者的超集。
-winterbear(Hibernate);
2006-3-5
(#2821465@0)
-
With new version of C++ compiler, it's not need to be transftered to C anymore
-simonqu(后悔);
2006-3-5
(#2821633@0)
-
不同的实现并不影响语言的特性。不管编译器怎么实现,C++都是C的超集,而不能是平行的关系
-winterbear(Hibernate);
2006-3-5
(#2821655@0)
-
C++ is never to be designed to be a superset of C in purpose. Have a look on The C++ Programming Language written by Bjarne, who gives a lot of contributions of the invention of C++. It explains very clear in the book.
-simonqu(后悔);
2006-3-5
(#2821675@0)
-
这个问题要看你怎么样看待,C++只是在很个别的feature上不是C的超集,但在更普通的意义上上C++确是C的超集。叫这个真儿没有意义,C++是C的超集这个说法是不严谨,但并不错。
-winterbear(Hibernate);
2006-3-5
(#2821705@0)
-
This is why a lot of people who wrote 5 or 6 yrs C programming but can transfter themselves to be a good C++ programmer. Concept is the key and all implementations are details. Details can never affect Concept
-simonqu(后悔);
2006-3-5
(#2821723@0)
-
I make a revise here. In system programming level C++ can be treated as a superset to C. For general programming they're only connected on syntax, nothing else.
-simonqu(后悔);
2006-3-5
(#2821727@0)
-
你扯太远了。我只想说,我们不能说英语好还是汉语好,但我们可以说,在一般意义上(不是绝对意义上),C++比C好。
-winterbear(Hibernate);
2006-3-6
(#2821751@0)
-
Can't agree on which one is better. It depends on different situations. I do agree that C++ has a better support on OO than C.
-simonqu(后悔);
2006-3-6
(#2821759@0)
-
您的can't agree难道就无视条件吗?我的条件是in general
-winterbear(Hibernate);
2006-3-6
(#2822292@0)
-
What's the term of IN GENERAL? There's no such words in CS area except algorithm under the condition of considering distributed proboblity.
-simonqu(后悔);
2006-3-6
(#2823244@0)
-
There's a word general-purpose programming which 's out of scope of this discussion
-simonqu(后悔);
2006-3-6
(#2823247@0)
-
转一篇OO的小例子,和C#里的Interface有关,希望能对搂住有帮助?
-binghongcha76(一只大猫);
2006-3-6
{1249}
(#2822567@0)
-
This is something called system call in operating system. It is as old as C and in fact part of C/unix from very beginning.
-iwantcar(EnjoyStudying);
2006-3-6
(#2823821@0)
-
是吗,您牛呀,我主要是没学过操作系统等等,至于有多老我也不知道,我只是觉得这样使用接口是一种很有效的OO方法
-binghongcha76(一只大猫);
2006-3-7
(#2823938@0)
-
Summary of the comparation between C++ and C from http://www.eventhelix.com/RealtimeMantra/basics/ComparingCPPAndCPerformance.htm
-simonqu(后悔);
2006-3-6
{1813}
(#2823318@0)
-
Hopfully, this will benefit people who's going interview
-simonqu(后悔);
2006-3-6
(#2823392@0)
-
高人这么多啊,敬仰中.我不会OO啊,总那里入手呢?
-mike20030405(麦客);
2006-3-8
(#2827887@0)