会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
94
95
96
97
98
99
100
101
102
···
188
下一页
2022年9月22日
C语言:插入排序
摘要: #include <stdio.h> int ab[10] ={99,1,3,8,11,34,104,87,33,41}; void insea(int a[],int n) { int i,j,x; for(i=0;i<n;i++){ if(a[i]<a[i-1]) { j=i-1; x=a[i]
阅读全文
posted @ 2022-09-22 16:40 myrj
阅读(91)
评论(0)
推荐(0)
2022年9月20日
python :函数超时退出代码
摘要: from func_timeout import func_set_timeout import func_timeout,time @func_set_timeout(11)#该行需要在控制异常退出的每个函数前,可以分别指定不同的时间退出,不需要超时退出的函数前不能加此句,否则会报错退出 def
阅读全文
posted @ 2022-09-20 15:52 myrj
阅读(217)
评论(0)
推荐(0)
2022年9月19日
C语言:利用指针交换两个变量的值
摘要: #include <stdio.h> void fun(int *a,int *b) { int *k; k=a;a=b;b=k; } void fun1(int *a,int *b) { int k; k=*a;*a=*b;*b=k; } main() { int a=3,b=6,*x=&a,*y
阅读全文
posted @ 2022-09-19 20:17 myrj
阅读(155)
评论(0)
推荐(0)
C语言:数组首地址
摘要: #include <stdio.h> //a数组首地址a[0],对应第1个元素,加4,对应第5个元素 main() { int a[]={45,66,78,95,68,96,99},*b=a; printf("%d",*(a+4)); getchar(); }
阅读全文
posted @ 2022-09-19 19:55 myrj
阅读(165)
评论(0)
推荐(0)
C语言:指针 自增 自减 优先级相同,右结合性
摘要: #include <stdio.h> //逗号表达式先计算p=p+2,指向3 //*p++:*与++优先级相同,右结合性,(*)p++, //输出时先用后加,所以表达式值为3 (*p=4) // p=p+2=6 //*++p:优先级相同,右结合,*(++p),先加后用,逗号表达式值为7 main()
阅读全文
posted @ 2022-09-19 19:23 myrj
阅读(148)
评论(0)
推荐(0)
C语言:指针变量的值变化,则对应新的变量,原变量的值不变
摘要: #include <stdio.h> //指针变量的值变化,则对应新的变量,原变量的值不变 main() { int m=1,n=2; int *p=&m,*q=&n,*r; r=p;p=q;q=r; printf("%d,%d,%d,%d",m,n,*p,*q); getchar(); }
阅读全文
posted @ 2022-09-19 19:07 myrj
阅读(185)
评论(0)
推荐(0)
C语言:一维数组 二维数组指针
摘要: #include <stdio.h> //一维数组 二维数组的指针 main() { int a[2][3]={{1,2,3},{4,5,6}}; int b[]={10,20,30,40,50,60}; int *p,*p1,i; p1=b;//一维数组指针 p=a[0];//二维数组指针 //p
阅读全文
posted @ 2022-09-19 16:48 myrj
阅读(37)
评论(0)
推荐(0)
2022年9月18日
C语言:利用指针交换两个变量 的值
摘要: #include <stdio.h> void swap(int *p1,int *p2) { int tmp=*p1; *p1=*p2; *p2=tmp; } void swap1(int *p1,int *p2){ *p1=*p1+*p2; *p2=*p1-*p2; *p1=*p1-*p2;}
阅读全文
posted @ 2022-09-18 20:07 myrj
阅读(134)
评论(0)
推荐(0)
清华同方还原密码
摘要: TF tfth tfthpc
阅读全文
posted @ 2022-09-18 11:20 myrj
阅读(97)
评论(0)
推荐(0)
手动修改网络IP
摘要: 修改有线静态IP(固定IP) netsh interface ip set address name= "本地连接" source=static addr=192.168.200.52 mask=255.255.255.0 gateway=192.168.200.1 1 注:name:是有线连接的名
阅读全文
posted @ 2022-09-18 11:20 myrj
阅读(892)
评论(0)
推荐(0)
上一页
1
···
94
95
96
97
98
99
100
101
102
···
188
下一页
公告