- 博客(6)
- 资源 (5)
- 收藏
- 关注
原创 奇数阶魔方阵
#include #define N 5 int main(){ int s[N][N]; int i,j,n; i = 0; j = N/2; s[i][j] = 1; for(n=2;n { if ( (n-1) % N ) { i = (i+N-1) % N;
2009-10-18 15:03:00
560
原创 运算速度
int x,y;y=50*x; 这两条语句执行速度太慢,如何加速一下, 50=5(2)+4(2)+1(2的1次方) 所以y=(x 二者的结果是一样的。
2009-10-16 19:34:00
543
原创 字符串反转实现
在网络上看过很多,自己暂时写出来一个和大家分享一下。有几点体会1、野指针 char *ch;2、细节问题 string+i 和 string+len-1-i #include#includeint main(int argc,char *argv[]){ char str[20]; strcpy(str,"you and me!");
2009-10-14 19:38:00
552
原创 TFTP使用
TFTP(Trivial File Transfer Protocol,简单文件传输协议)是TCP/IP协议族中的一个用来在客户机与服务器之间进行简单文件传输的协议,TFTP承载在UDP上,提供不可靠的数据流传输服务,不提供存储授权与认证机制,使用超时重传方式来保证数据的到达。 lsmkdir hpctouch 3.txtcd ../..ls可以看到tftpboot
2009-10-14 19:11:00
687
原创 求N*N矩阵对角线元素之和(C语言实现)
/*求N*N矩阵对角线元素之和*/ #include#includeint main(int argc,char *argv[]){ int N; printf("input N:"); scanf("%d",&N); int a[N][N]; int i,j; printf("input a[N][N]:/n");
2009-10-12 18:48:00
15846
1
原创 【英语】美文欣赏---我多么希望自己再度迷失
Where there is great love, there are always miracles. Love is like a butterfly. It goes where it pleases and it pleases where it goes. If I had a single flower for every time I think about y
2008-09-09 18:54:00
1649
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人