将枚举设置为8位而不是32位 [英] Setting for enum as an 8 bit instead of 32 bit

查看:242
本文介绍了将枚举设置为8位而不是32位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将VC ++用于嵌入式应用程序,在该应用程序中我希望将枚举设置为8位而不是32位,以节省内存.在Visual Studio中有设置吗?

I am using VC++ for embedded application where I want enum as an 8 bit instead of 32 bit default to save my memory. Is there any setting to do so in visual studio?

请让我知道是否有人对此有所了解,因为这对我来说非常重要.

Please let me know if anybody is having idea about the same as this is very much important for me.

预先感谢

推荐答案

为什么不在VC ++论坛而不是VB论坛中尝试呢?
Why not try this in a VC++ forum instead of a VB forum?


这篇关于将枚举设置为8位而不是32位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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