- 博客(4)
- 资源 (38)
- 收藏
- 关注
转载 Matrix_Calc
<br />#include<iostream>#include<iomanip>#include<cmath>using namespace std;//初始化矩阵void InitMatrix(double *const lMatrix, const int &dim){ cout << "按行输入矩阵!" << endl << endl; for (int i=0; i<dim; i++) { cout << "第"
2011-01-24 10:47:00 589
原创 出圈问题(自己的程序)
<br />#include "iostream"using namespace std;#define MAX 10#define DIST 5void initArray(int person[], int nLen);void Out(int person[], int nMax, int nDist);void reversePrint(int person[], int nLen);void main(){ int nLen = MAX; int
2011-01-12 08:54:00 502
转载 出圈问题
首先理解题意设有n个人围坐一圈并按顺时针方向从1到n编号。从第s个人开始进行1到m的报数, 报数到第m个人, 此人出圈, 再从他的下一个人重新开始1到m的报数,如此进行下去直到所有的人都出圈为止。现要求按出圈次序,给出这n个人的顺序表p。木易版答案:void Josegh(void){ int i,j,s1,w;s1=s;for(i=1; i p[i-1]=i;for(i=n; i>=2; i--) { s1=(s1+m-1)%i; if(s
2011-01-10 14:14:00 1877
转载 api file operation
<br /><br />下面是windows中提供的对于文件进行操作的API函数及其功能:<br />Windows API函数 功能<br />CloseHandle 关闭一个内核对象。其中包括文件、文件映射、进程、线程、安全和同步对象等。涉及文件处理时,这个函数通常与vb的close命令相似。应尽可能的使用close,因为它支持vb的差错控制。注意这个函数使用的文件句柄与vb的文件编号是完全不同的<br />CompareFileTime 根据FILETIME结构的信息,对比两个文件的时间<b
2011-01-10 14:11:00 477
flexgrid attribute conclusion
2011-05-12
Very NB Many NB Very NB Many NB
2011-03-24
Program to open webs togethor
2011-03-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人