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;\ \ }
私もあなたのフォーマットを維持しました;)