[求助] 怎样用VC++6。0编写十进制转换为二进制的函数
前两天自己刚拿这题目的时候还觉得不过如此, 等实际做下来却发现限制多多……
位数过高、出现负数、……
还请各位高手不吝赐教~~!!!
下面是文件中的一行,能不能给段代码?谢谢
-341.46774846741 398.42501117177 -97.223382949391 -341.46774846741 81.693608076694 75.85896858195 -57.710867478469 131.27046698101 251.9146310403 169.46474740233 107.15914979005 80.864750025577
71.618575108606 84.788827962419 118.31641847779 129.93647845485 97.346586700636 73.943306749541 43.689702750956 20.477363868266 31.85980369226 42.890353440919 44.510402520072 111.68128031227 53.411206776871 -30.035714547468 -1.1043028729718 -5.0200776938492 -123.40353718219 -178.8861653452 -132.23401151712 -124.96296222358