05 2022 档案

摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<string.h> #include<stdio.h> #include<assert.h> #include<stdlib.h> ////1. 计数器的方法 ////2. 递归 ////3. 指针 - 指针 // 阅读全文
posted @ 2022-05-28 09:37 JimJZY 阅读(78) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<string.h> #include<assert.h> //实现一个函数,可以左旋字符串中的k个字符 //例如: //ABCD左旋一个字符得到BCDA //ABCD左旋两个字符 阅读全文
posted @ 2022-05-27 09:01 JimJZY 阅读(79) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<string.h> #include<assert.h> #include<math.h> #include<stdlib.h> //void reverse(char* str 阅读全文
posted @ 2022-05-26 10:09 JimJZY 阅读(82) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //二维数组 //int main() //{ // int a[3][4] = { 0 }; // printf("%d\n", sizeof(a));//48 3*4*4 // printf( 阅读全文
posted @ 2022-05-25 09:35 JimJZY 阅读(78) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> #include<string.h> //qsort(s, sz, sizeof(s[0]), cmp_stu_by_name); //第一个参数:待排序数组 阅读全文
posted @ 2022-05-24 09:24 JimJZY 阅读(80) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> #include<string.h> //void menu() //{ // printf("****************************\n" 阅读全文
posted @ 2022-05-23 09:17 JimJZY 阅读(75) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //int main() //{ // //字符指针 // char ch = 'w'; // char* p = &ch; // const char* p2 = "abcdef"; // // 阅读全文
posted @ 2022-05-22 12:48 JimJZY 阅读(78) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //void test(int arr[]) //{ // int sz = sizeof(arr) / sizeof(arr[0]); // printf("%d\n", sz); //} // 阅读全文
posted @ 2022-05-21 12:18 JimJZY 阅读(85) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> void test(int arr[]) { int sz = sizeof(arr) / sizeof(arr[0]); printf("%d\n", sz); } int main() { i 阅读全文
posted @ 2022-05-20 12:21 JimJZY 阅读(78) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<Windows.h> //int main() //{ // unsigned int i; // for (i = 9; i >= 0; i--)//-1是无符号数, 代码死循 阅读全文
posted @ 2022-05-19 13:19 JimJZY 阅读(65) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { int a = 10; float f = 10.0; unsigned char;//0 - 255 signed char;//-128 - 127 return 0 阅读全文
posted @ 2022-05-18 13:32 JimJZY 阅读(78) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<assert.h> 描述一个学生.一些数据 名字 年龄 电话 性别 struct 结构体关键字 Stu - 结构体标签 struct Stu - 结构体类型 struct Stu 阅读全文
posted @ 2022-05-17 11:39 JimJZY 阅读(72) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<assert.h> 描述一个学生.一些数据 名字 年龄 电话 性别 struct 结构体关键字 Stu - 结构体标签 struct Stu - 结构体类型 struct Stu 阅读全文
posted @ 2022-05-16 22:37 JimJZY 阅读(79) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { int a = 0; //~按(2进制)位取反 //00000000000000000000000000000000 //111111111111111111111111 阅读全文
posted @ 2022-05-15 14:02 JimJZY 阅读(108) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { int a = 5 % 2;//商2余1 取模分子分母都要为整数 printf("a = %d\n",a); return 0; } int main() { int a 阅读全文
posted @ 2022-05-14 11:54 JimJZY 阅读(90) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<limits.h> #include<stdlib.h>//system #include<string.h>//strcmp int main() { int a = 3; i 阅读全文
posted @ 2022-05-09 17:08 JimJZY 阅读(71) 评论(0) 推荐(0)