什么是“最佳"?还是最常用的数据类型? [英] What are the "best" or most common data type to use?

查看:102
本文介绍了什么是“最佳"?还是最常用的数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Windows编程的新手,我想知道在MFC中使用哪种最佳数据类型.我习惯于在DOS/UNIX环境下使用,但似乎每次转身VS2010时都希望我强制转换某些内容,否则我的数据类型将无法转换为已完成的操作.我应该坚持什么才能使我的生活更轻松?我应该读什么才能了解​​最新的方法?有某些库函数可以使用吗?我不知道哪种方法最适合Windows编程.

I''m new to Windows programming and I''m wondering what would be the best data types to use in MFC. I am use to a DOS/UNIX environment, but it seems every time I turn around VS2010 wants me to cast something or my data type will not convert to something I have done. What should I stick with to make my life easier? What should I read up on to get a handle on the lastest methods? Are there certain library functions to stick with? I don''t know what works best with Windows programming.

推荐答案

看起来您才刚刚开始,但是您的方法已经太错误了!
It looks like you are just starting, but your approach is already so wrong!
DrBones69写道:
DrBones69 wrote:

我应该坚持什么才能使我的生活更轻松?

What should I stick with to make my life easier?

没有.您确定您确实需要轻松的生活吗?大多数人想要更好的生活.更好的生活通常不像轻松和糟糕的生活.

Nothing. Are you sure you really need easier life? Most people want better life; and better life is usually not as easy and bad life.

DrBones69写道:
DrBones69 wrote:

我应该读什么来了解最新的 最新句柄. >方法?

What should I read up on to get a handle on the lastestlatest methods?

您应该阅读技术而不是方法.为什么您认为您需要最新的方法?通常,明智的人更喜欢更好的方法,而不是最新的方法.其中有些是新的,有些是相当老的.这取决于.

You should read on technology, not methods. Why do you think you need latest methods? Normally, wise people prefer better methods, not the latest. Some of them are new, some are quite old. It depends.

DrBones69写道:
DrBones69 wrote:

有某些库函数可以坚持吗?

Are there certain library functions to stick with?

不,从不.您不应该坚持功能,而要坚持思想,而不是过多.坚持太多 ,就会失去灵活性.

No, never. You should stick not to functions, but to ideas, and not too much. Sticking to anything too much, you loose flexibility.

DrBones69写道:
DrBones69 wrote:

我不知道哪种方法最适合Windows编程.

I don''t know what works best with Windows programming.

大脑.

—SA

Brain.

—SA


当我开始学习MFC时 [ ^ ]对我有很大帮助. MFC类和体系结构.耐心点,您可以从基于控制台的简单应用程序开始,然后再基于Dialog进行操作,等等...
When I started learning MFC this[^] helped me a lot.. See I think you are bogged down with MFC classes and architecture. Have patience, you can start with simple console based application, then move on Dialog based and so on...


我相信您需要研究以下链接:
http://softpixel.com/~cwright/programming/datatypes.c.php [ ^ ]

http://www.cplusplus.com/doc/tutorial/variables/ [
I believe you need to study these links:
http://softpixel.com/~cwright/programming/datatypes.c.php[^]

http://www.cplusplus.com/doc/tutorial/variables/[^]

Regards,
Eduard


这篇关于什么是“最佳"?还是最常用的数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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