随笔分类 - C语言学习笔记
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //get_max(int x, int y)//形式参数 //{ // int z = 0; // if (x > y) // z = x; // else // z = y; // return
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //库函数分类 //IO函数 printf scanf putchar // 字符串操作函数 strcmp strlen // 字符操作函数 toupper // 内存操作函数 memcpy memc
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //welcome to bit!!! //w###############! //we#############!! //wel###########!!! //... //welcome to b
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // char password[20] = { 0 }; // printf("请输入密码:>");//123456\n // scanf("%s", passwo
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // int day = 0; // scanf("%d", &day); // switch (day) // { // case 1: // printf("星期
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // printf("hello world\n"); // 4 + 2; // ;//空语句 // return 0; //} //int main() //{ /
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // int a = 10;//a在内存中要分配空间的-4字节 // printf("%\n",&a);//%p用来打印地址 // int* pa = &a;//pa
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> typedef类型重命名 唐三,小三 //typedef unsigned int u_int; //int main() //{ // // unsigned int num = 300; // u
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // int a = 0; // printf("%d\n", ~a);//00000000000000000000000000000000;按二进制位取反11111
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> 调试时输入1或其他非1的数进行选择判断 //int main() //{ // int input; // printf("好好学习?"); // scanf("%d", &input); // //
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // "abcdef"; // "hello"; // // return 0; //} //#include<string.h> 字符串的结束标志很重要 //int
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define MAX 1000; //作用域和生命周期 //局部变量的作用域就是局部变量所在的局部范围 // 全局变量的作用域是整个工程,也就是说全局变量可以在同一个项目跨文件使用,但是要申明一下
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // int a = 10; // // if (a>=10) // printf("hehe\n"); // // return 0; //} //int main
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> //int main() //{ // char ch = 'a'; // int age = 30; // short num = 10; // long leg = 58; // long lon
阅读全文