- 博客(3)
- 收藏
- 关注
转载 关于指针的一些问题
int a,*p=&a; printf("&a---%d\np---%d\n&p---%d\n*&p---%d\n&*p---%d\n*p---%d",&a,p,&p,*&p,&*p,*p); if(a)printf("aa"); /*输出结果 &a---6356788 ...
2019-07-26 18:05:00 74
转载 关于结构体类型的学习
1. 定义结构体类型时,最后的分号一定不能忘;struct st{ int num; int s;//分号不能少 };2. 关于结构体成员的获取:int main(void){ struct st a[3]; int i=0; scanf("%d",a); //输入a[0].num的值 s...
2019-07-25 23:45:00 152
转载 c语言的strcpy函数
strcpy是用于复制字符串的函数 1 #include <stdio.h> 2 #include <string.h> 3 int main(void) 4 { 5 char s[20]="abcdefg",*p="ABC"; 6 int i=0; 7 strcpy(s+2,p); 8 prin...
2019-07-24 23:05:00 247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人