本文介绍了计算基本数据类型的限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我必须开发一个程序来计算运行时所有数据类型的范围 time ... 意思是说char c; 现在我必须看看char可以代表多少个字符, 一个逻辑我想是开始递增直到循环回到0 (对于无符号)和/或-128(对于签名).... 然而,这种骑行在所有平台上都是统一的,或者不是...... 还有什么方法可以做到......不使用标题定义限制 常量。 ... 帮帮我...这个.. sandSpiderX 解决方案 过量的省略号并不能反映出你的思维能力。 你可以没有它们。 Hi,I have to develop a program to compute range of all data types at runtime...meaning say char c;now I have to see how many characters char can represent,,one logic i think is to start incrementing till the loop goes back to 0(for unsigned) and/or -128 (for signed)....However this cycling is unifrom across all platforms or not...What other way can this be done...without using header defined limitconstants....Help me..with this..sandSpiderX 解决方案And an overdose of ellipsis does not reflect your thinking prowess.You could have done without them. 这篇关于计算基本数据类型的限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-28 01:49
查看更多