- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 多种排序算法性能分析代码 C++
#include #include using namespace std; #define N 1000 void swap(int &a,int &b) { int temp=a; a=b; b=temp; } //冒泡 void Msort(int A[],int size) { for(int i=0;i { for(int j=
2015-06-08 23:28:58 441
原创 复数+ - *操作的实现 c语言
#include int f(int n); int main() { int m,n; printf("请输入两个数(100 while(1) { scanf("%d %d",&m,&n); if(!((m>100&&m100&&n printf("不符合要求重新输入:"); else bre
2015-04-28 18:26:07 525
原创 求500到800的所有素数 c语言
#include #include int countvalue(int aa[]) { int i=0; int count=0; while(i { int isp=1; for(int j=2;j { if(aa[i]%j==0) { isp=0; break; } }
2015-04-28 18:23:09 4654
转载 c++画图程序 流体的实现
#include #include #include #define WIDTH 1024 // 屏幕宽 #define HEIGHT 576 // 屏幕高 #define NUM_MOVERS 600 // 小球数量 #define FRICTION 0.96f // 摩擦力 // 定义小球结构 struct Mover { COLOR
2015-04-27 12:34:39 1988
原创 二叉树创建 元素计数与显示
//shu_3.h #include using namespace std; struct tree { int data; tree *left,*right; }; class Btree { public: tree *root; Btree() { root=NULL; } void create(int); void pr
2015-04-26 23:07:59 363
原创 图书馆管理系统 C语言实现
//图书管理系统 //具体功能包括图书的添加 删除 搜索 ,采用会员制度包含 会员的身份记录 // 编译环境 visual studio 2008 语言:C语言 #include #include #include #include #define HEADER1 "..............................BOOK...................
2015-04-26 22:39:34 12440
原创 文件操作 课程成绩平均分统计并排名
//运行环境 visual studio 2008 //c语言 代码如下 #include #include typedef struct student { char number[20]; char name[20]; int score_1; int score_2; int
2015-04-26 22:21:28 819
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人