摘要:
这是第二题 #include #include int main() { char *s1A = "abc", *s1B = "abc"; char *s2A = "abcd", *s2B = "abcde"; puts("使用strcmp函数"); printf("s1A=%s、s1B=%s\n", s1A, s1B); if (strcmp... 阅读全文
摘要:
1 //第一题 2 #include 3 4 int main() 5 { 6 int a = 0; 7 printf("请输入1-100之间的数:"); 8 scanf_s("%d",&a); 9 if (a 99) 10 { 11 printf("成绩输入出错"); 12 } 13 else if(a... 阅读全文
摘要:
1 #include 2 3 int main() 4 5 { 6 //short a = 0xfffe; 7 //printf("%d\n",a); 8 9 //unsigned short a = 0xfffe; 10 //printf("%u\n",a); 11 12 //short a = 0x7fff + 2; 13 ... 阅读全文
摘要:
1 导入标准输入输出库 2 #include //头文件 std标准库 i/o输入输出库 3 4 5 6 进制在程序中打印: 7 int a =10; //十进制中的10 8 int b=010;//八进制中的10 在程序中定义一个八进制书需要在数前面加上0区分 9 int c=0x10;十六进制中的10 在程序中定义一个十六进... 阅读全文
摘要:
打开终端:ctrl+alt+t 清屏:ctrl+l 在终端在退出锁定:ctrl+c 目录:又称为文件夹,是包含所有的文件 目录创建规则: 1、大小是256 2、不能包含特殊字符 3、见名知义 路径:是反应目录和文件的位置 [绝对位置]文件位置:windows:盘符:\文件夹\文件.avi linux: /home/主文件夹/0520/day01/a [相对位置]当前目录所在位置为 ... 阅读全文