在c#和vc ++之间混淆 [英] Confused between c# and vc++

查看:125
本文介绍了在c#和vc ++之间混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我去年开始进行c#编程,由于项目要求,我的老板让我转到vc ++,我可以选择vc ++用于我的职业生涯,还是应该坚持使用c#。我对两者都很感兴趣。

Dear all,
I have started c# programing in last year and due to project requirements my boss asked me to shift to vc++, Can i choose vc++ for my career or should i stick to c#.I am interested in both.

推荐答案

C ++很多,比C#复杂得多 - 它的结果更加强大,但是它带来了责任感。例如,C ++不必使用.NET或它的垃圾收集,因此您的应用程序负责确保您释放已完成的任何内存。如果你不注意,事情可能会非常错误,很快就会出现在C ++中没有用C#。



不要被他们的方式所迷惑看起来类似的地方,C ++和C#是非常不同的语言,共享一些常见的语法。你可以在一个下午学习C# - 虽然它背后的框架需要 几个月 - C ++要复杂得多,而且要获得的东西不仅仅是一个模糊的熟悉程度花更多的时间。并且(除非你使用C ++编写.NET应用程序)还有更多的时间来学习它所使用的框架。



如果你老板想要的话你要转移,然后学习它 - 但要正确地学习它:你不能只是假设它是一样的,并希望它一切正常。它不会!



一旦你有好的时间,你可以决定你想要专攻的方式。
C++ is a lot, lot more complicated than C# - it's a lot more powerful as a result, but that comes with responsibility. C++ doesn't have to use .NET or it's garbage collection for example so your application is responsible for making sure you release any memory you have finished with. If you don;t pay attention, things can go very wrong, very quickly in C++ that don't in C#.

Don't be fooled by the way they look similar in places, C++ and C# are very different languages that share some common syntax. You can learn C# in an afternoon - though the framework behind it will take months - C++ is a lot more complex, and to get anything more than a vague familiarity is going to take considerably more time. And (unless you are using C++ to write .NET apps) there is a further bunch of months to pick up the framework it uses as well.

If you boss want's you to shift, then learn it - but learn it properly: you can't just assume it's the same and hope it all works. It won't!

Once you have some good time with each under your belt you can decide which way you want to specialise.


这篇关于在c#和vc ++之间混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆