
Algorithms
lmyessential
爱好:互联网,音乐,四国军旗,小说,电影
展开
-
最大公约数
求最大公约数的方法1:#include<iostream>using namespace std;//return th greatest common divisorint gcd(int v1, int v2){ while(v2) { int temp=v2; v2 = v1 % v2; ...2009-01-16 00:30:51 · 157 阅读 · 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 · 76 阅读 · 0 评论