Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的while循环可以在宏中实现吗?
while (x < 0.5) { count++; x = x *2; }
x 是一个非常小的数字。分数
干得好:
#define MYMACRO \ while (x < 0.5)\ \ {\ count++;\ \ x = x *2;\ \ }
我什至保留了你的格式;)