Multi-use const as much as possible without #define

xiaoxiao2021-03-06  87

I found a problem data wrong last night. I am considered from the algorithm. I didn't think about anything wrong for half a day. This morning, I found this statement: p = p / pan_perunit; this time I suddenly thought #define pan_perunit 0.0129 * pi / 180 reasons found this Define. So encourage as CoN to use CONST without #define. Oh, spent a night, I found it. I will debug someone else's programs I will first check the basic questions such as #define. Change into const concert double pan_perunit = 0.0129 * pi / 180;

转载请注明原文地址:https://www.9cbs.com/read-106683.html

New Post(0)