摘要: You Can Find the Article HereTable of Contents1 spotlight2 prime mover3 salute4 venerable5 bottleneck6 pervasive7 homage8 troubleshoot9 sluggish10 indispensable11 standby12 encryption13 asterisk14 round out15 lapse1spotlightn 聚光灯v 用聚光灯照明、引起公众的注意2prime mover原动力3salute敬礼4venerable受人尊敬的5bottleneck瓶颈、障碍 阅读全文
posted @ 2011-08-11 22:04 visayafan 阅读(295) 评论(0) 推荐(0)
摘要: Table of Contents1 GCD 算法的基本原理2 GCD 算法的实现2.1 递归实现2.2 迭代实现1GCD 算法的基本原理GCD=Greatest Common Divisor欧几里德定理若 a=b×r+q 则gcd(a, b) = gcd(b, q).欧几里德定理的证明a = b × r + q设c = gcd(a, b), a = m×c, b= n×cq = a - b× r = (m - n × r)×c下面证明 m-n×r与n互质:假设不互质,则存在k使得 m-n×r = x&# 阅读全文
posted @ 2011-08-11 17:57 visayafan 阅读(9233) 评论(0) 推荐(4)
摘要: 求分数的最大公约与最小公倍数求分数的最大公约与最小公倍数Table of Contents1 求一组分数的最小公倍数的方法 2 求一组分数的最大公约数的方法 1 求一组分数的最小公倍数的方法先将各个分数化为a/b的形式(假分数 或真分数形式)用各个分数的分母的最大公因数作所求最小公倍数的分母用各个分数的分子的最小公倍数数作所求最小公倍数的分子2 求一组分数的最大公约数的方法先将各个分数化为a/b的形式(真假分数无所谓)用各个分数的分母的最小公倍数做最大公约数的分母用各个分数的分子的最大公约数做最大公约数的分子Author: visaya fan<visayafan[AT]gmail.co 阅读全文
posted @ 2011-08-11 17:17 visayafan 阅读(1268) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int a, b; while(cin>>hex>>a>>b) cout<<dec<<a+b<<endl; return 0;} 阅读全文
posted @ 2011-08-08 15:38 visayafan 阅读(739) 评论(0) 推荐(0)
摘要: 具体用法参考C++官网/ /numeric_limits example#include <iostream>#include <limits>using namespace std;int main () { cout << boolalpha; cout << "Minimum value for int: " << numeric_limits<int>::min() << endl; cout << "Maximum value for int: " 阅读全文
posted @ 2011-08-07 16:01 visayafan 阅读(2284) 评论(0) 推荐(0)
摘要: const char*和char const*以及char*const const char*, char const*, char*const的区别问题几乎是C++面试中每次都会有的题目。 事实上这个概念谁都有,只是三种声明方式非常相似很容易记混。Bjarne在他的The C++ Programming Language里面给出过一个助记的方法: 把一个声明从右向左读。char * const cp ==> 读成 pointer to cp is a const pointer to charconst char * p ==> p is a pointer to const c 阅读全文
posted @ 2011-08-06 22:44 visayafan 阅读(617) 评论(0) 推荐(0)
摘要: New DivideI remembered black skies the lighting all around me.I remember each flash as time began to blur.Like a startling sign that fate had finally find me.And your voice was all I heard.That I get what I deserve.So give me reason to prove me wrong to wash this memory clean.Let the floods cross th 阅读全文
posted @ 2011-07-31 18:49 visayafan 阅读(237) 评论(0) 推荐(0)
摘要: note011 competent 2 topple 3 intervene 4 interpret 5 cope 6 irritate 7 distort 8 hamper 9 insulate 1 competentSomeone who is competent is effective and efficient.Examples:1 He was a loyal, distinguished and very competent civil servant.2 The government performed competently in the face of multiple c 阅读全文
posted @ 2011-07-31 18:03 visayafan 阅读(299) 评论(0) 推荐(0)