摘要: void decToBinary(int decimal) { int binary[32]; int cnt = 0; while (decimal > 0) { binary[cnt] = decimal % 2; // 取模放在低位 decimal = decimal / 2; // 更新参数 阅读全文
posted @ 2024-06-04 16:00 小北bolg 阅读(51) 评论(0) 推荐(1)