摘要:
#define _CRT_SECURE_NO_WARNINGS 1 //交换数组 //将数组A中的内容和数组B中的内容进行交换(数组一样大) #include<stdio.h> int main() { int arr1[] = { 1,3,5,7,9 }; int arr2[] = { 2,4,6 阅读全文
posted @ 2022-04-02 16:25
zzy_C
阅读(112)
评论(0)
推荐(0)
|
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 //交换数组 //将数组A中的内容和数组B中的内容进行交换(数组一样大) #include<stdio.h> int main() { int arr1[] = { 1,3,5,7,9 }; int arr2[] = { 2,4,6 阅读全文
posted @ 2022-04-02 16:25
zzy_C
阅读(112)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 //创建一个整型数组,完成对数组的操作 //1.实现函数init()初始化数组为全0 //2.实现print()打印数组的每个元素 //3.实现reverse()函数完成数组元素的逆置 #include<stdio.h> void 阅读全文
posted @ 2022-04-02 15:42
zzy_C
阅读(137)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { char c = 1; printf("%u\n", sizeof(c)); //1 printf("%u\n", sizeof(+c));//4 printf("%u\ 阅读全文
posted @ 2022-04-02 12:28
zzy_C
阅读(109)
评论(0)
推荐(0)
摘要:
//结构成员访问操作符 . -> //结构体 //int float char short //double long // //书:书名,书号,出版社,作者,定价 //人:名字,年龄,性别 struct Book { char name[20]; char id[20]; int price; } 阅读全文
posted @ 2022-04-02 11:06
zzy_C
阅读(227)
评论(0)
推荐(0)
|