您好,
您可以直接把数值的表示法改成U8(无符号单字节整型)。由于这种表示法只允许0至255的整数,255+1就会等于0。
DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
ZY_Ong 已写:
您好,
您可以直接把数值的表示法改成U8(无符号单字节整型)。由于这种表示法只允许0至255的整数,255+1就会等于0。
您好,谢谢!
但您这个方法是通过数据类型的特征实现的,那如果不是这种特别的数字,比如是实现2-21的循环自加怎么实现呢?我是想知道从初始值加到最大值后,如何跳回初始值重新循环。