![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Algorithms
lmyessential
爱好:互联网,音乐,四国军旗,小说,电影
展开
-
最大公约数
求最大公约数的方法1: #include<iostream> using namespace std; //return th greatest common divisor int gcd(int v1, int v2) { while(v2) { int temp=v2; v2 = v1 % v2; ...2009-01-16 00:30:51 · 127 阅读 · 0 评论 -
冒泡排序
#include<iostream> #include<vector> using namespace std; int main() { vector<int> vint; int val; cout << "Enter some numbers : " << endl; while(cin.peek()...2009-01-16 00:33:16 · 55 阅读 · 0 评论