Ask prawns, how to change the type conversion in VC

zhaozj2021-02-16  94

INT XOFSET = INT ((Speed ​​[k] -speed [0]) / (speted [m_analdatafilenum-1] -speed [0]) * xdistance); where the speed type is long

After compiling, debugging actually when k = 0, the value of Xoffset is 4, I don't know why, ask how to solve it.

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

New Post(0)