摘要: 1 #include <stdio.h> 2 3 // 除法 4 int div(int loperand, int roperand) 5 { 6 int cnt = 0; 7 while (loperand > roperand) 8 { 9 cnt++;10 loperand -= roperand;11 }12 13 return cnt;14 }15 16 // 取余数17 int getRemainder(int loperand, int roperand)18 {19 while (lopera... 阅读全文
posted @ 2013-03-21 18:38 life91 阅读(217) 评论(0) 推荐(0) 编辑