2013年3月27日
摘要: 1 //示例代码 2 // return the greatest common divisor 3 int gcd(int v1, int v2) 4 { 5 while (v2) { 6 int temp = v2; 7 v2 = v1 % v2; 8 v1 = temp; 9 } 10 return v1; 11 } // return the greatest common divisor ... 阅读全文
posted @ 2013-03-27 14:54 毋忆典藏 阅读(180) 评论(0) 推荐(0)