05 2022 档案
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<string.h> #include<stdio.h> #include<assert.h> #include<stdlib.h> ////1. 计数器的方法 ////2. 递归 ////3. 指针 - 指针 //
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<string.h> #include<assert.h> //实现一个函数,可以左旋字符串中的k个字符 //例如: //ABCD左旋一个字符得到BCDA //ABCD左旋两个字符
阅读全文
摘要:#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
阅读全文
摘要:#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(
阅读全文
摘要:#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); //第一个参数:待排序数组
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> #include<string.h> //void menu() //{ // printf("****************************\n"
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //int main() //{ // //字符指针 // char ch = 'w'; // char* p = &ch; // const char* p2 = "abcdef"; // //
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //void test(int arr[]) //{ // int sz = sizeof(arr) / sizeof(arr[0]); // printf("%d\n", sz); //} //
阅读全文
摘要:#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
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<Windows.h> //int main() //{ // unsigned int i; // for (i = 9; i >= 0; i--)//-1是无符号数, 代码死循
阅读全文
摘要:#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
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<assert.h> 描述一个学生.一些数据 名字 年龄 电话 性别 struct 结构体关键字 Stu - 结构体标签 struct Stu - 结构体类型 struct Stu
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<assert.h> 描述一个学生.一些数据 名字 年龄 电话 性别 struct 结构体关键字 Stu - 结构体标签 struct Stu - 结构体类型 struct Stu
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { int a = 0; //~按(2进制)位取反 //00000000000000000000000000000000 //111111111111111111111111
阅读全文
摘要:#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
阅读全文
摘要:#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
阅读全文
浙公网安备 33010602011771号