上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
快速排序时限:1000ms内存限制:10000K 总时限:3000ms描述给定一个数列,用快速排序算法把它排成升序。输入第一行是一个整数n,表示要排序的数的个数;下面一行是用空格隔开的n个整数。输出输出排序后的数列,每个数字占一行。输入样例53 2 1 4 5输出样例12345#include us... Read More
posted @ 2015-03-22 20:34 再见,少年 Views(157) Comments(0) Diggs(0) Edit
循环赛日程表时限:1000ms内存限制:10000K 总时限:3000ms描述用分治算法生成循环赛日程表(1到2的n次方个人)输入一个整数n输出循环赛日程表(1到2的n次方个人)输入样例3输出样例1 2 3 4 5 6 7 82 1 4 3 6 5 8 73 4 1 2 7 8 5 64 3 2 1... Read More
posted @ 2015-03-22 20:28 再见,少年 Views(240) Comments(0) Diggs(0) Edit
原子电子运行模型 在原子电子运行模型当中运用了模型变换以及栈知识,具体代码如下:// myOpengl.cpp : Defines the entry point for the console application.//#include "stdafx.h"// simpleGL.cpp : ... Read More
posted @ 2015-01-15 20:56 再见,少年 Views(427) Comments(0) Diggs(0) Edit
4步教你学会使用matlab模糊控制工具箱 Matlab模糊控制工具箱为模糊控制器的设计提供了一种非常便捷的途径,通过它我们不需要进行复杂的模糊化、模糊推理及反模糊化运算,只需要设定相应参数,就可以很快得到我们所需要的控制器,而且修改也非常方便。下面将根据模糊控制器设计步骤,一步步利用Matla... Read More
posted @ 2015-01-03 21:38 再见,少年 Views(14605) Comments(0) Diggs(2) Edit
代码如下:#include //#include #include #include #include using namespace std;#define GL_PI 3.1415fvoid RenderScene(){ //glClear(GL_COLOR_BUFFER_BIT|GL_D... Read More
posted @ 2015-01-03 12:13 再见,少年 Views(356) Comments(0) Diggs(0) Edit
代码如下:#include //#include #include #include #include using namespace std;#define GL_PI 3.1415fvoid RenderScene(){ glClear(GL_COLOR_BUFFER_BIT|GL_DEP... Read More
posted @ 2015-01-03 11:54 再见,少年 Views(262) Comments(0) Diggs(0) Edit
代码如下:#include //#include #include #include #include using namespace std;#define GL_PI 3.1415fGLubyte fire[]={ 0x00,0x00,0x00,0x00, 0x00,0x00,0x0... Read More
posted @ 2015-01-03 11:15 再见,少年 Views(381) Comments(0) Diggs(0) Edit
代码如下:#include //#include #include #include #include using namespace std;#define GL_PI 3.1415fvoid RenderScene(){ static GLfloat xRot = 0,yRot = 0; ... Read More
posted @ 2015-01-03 10:29 再见,少年 Views(248) Comments(0) Diggs(0) Edit
代码如下:#include //#include #include #include #include using namespace std;#define GL_PI 3.1415fvoid RenderScene(){ GLfloat x,y,angle; int iPivot =... Read More
posted @ 2015-01-02 21:40 再见,少年 Views(253) Comments(0) Diggs(0) Edit
代码如下:#include //#include #include #include #include using namespace std;#define GL_PI 3.1415fvoid RenderScene(){ glClear(GL_COLOR_BUFFER_BIT); G... Read More
posted @ 2015-01-02 11:56 再见,少年 Views(266) Comments(0) Diggs(0) Edit
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页