搜索资源列表
5
- 非递归的快速排序算法-#include <iostream> #include <stack> #define MAX_SIZE 11 using namespace std typedef int elem typedef std::stack<int> Stack int partition(elem*pData, int low, int high) voi
142
- 求两个整数的最大公约数和最小公倍数,并编写主函数调用这两个子函数,输出结果,两个整数由键盘输入。-#include<iostream> using namespace std int x(int a,int b) //x为求最大公约数的函数 { int t=0 if(a>b)t=b else t=a for(int i=t i>=1 i--)if(a i==0&&b i==0)break return i
sprime
- USACO 1.5.3 sprime源代码,给同学们点借鉴吧~~考试的时候有的时候只让用iostream库啊有木有-Source code USACO 1.5.3 sprime, to point students learn to exam time and sometimes just let iostream library for wooden have
gtest_demo1
- 程序如下: #include <iostream> //包含头文件iostream using namespace std //使用命名空间std int main( ) { cout<<″This is a C++ program.″ return 0 } 在运行时会在屏幕上输出以下一行信息: This is a C++ program.-At run time on the screen output the follow