摘要: # Archlinux GCC 13.1.1 20230429 点击查看代码 ``` #include int main() { while( (c_in=getchar()) != '\n' ) { if( c_in != EOF ){ if( i 小白刚学习C语言,代码质量不高,欢迎评论。 阅读全文
posted @ 2023-07-20 22:59 语巫 阅读(42) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-20 18:22:15 星期四 点击查看代码 ``` #include #include int main() { // 使用打印标准头文件中的相应值的方式 printf("使用标准头文件中的相应值:\n"); prin 阅读全文
posted @ 2023-07-20 18:24 语巫 阅读(120) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-20 17:55:02 星期四 点击查看代码 ``` #include #include int main() { int i, sma, med, big; FILE *fp; char tmp[100] = ""; 阅读全文
posted @ 2023-07-20 17:55 语巫 阅读(120) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-20 13:34:31 星期四 点击查看代码 ``` #include #define TRUE 1 #define FALSE 0 int main() { int i, j, sign; char tmp[100]= 阅读全文
posted @ 2023-07-20 13:37 语巫 阅读(213) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-18 17:32:11 星期二 点击查看代码 ``` #include #define SIGN 12 //折行记号(字符数) int main() { int c_in, c_cnt; c_in = c_cnt = 0 阅读全文
posted @ 2023-07-18 17:32 语巫 阅读(52) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-17 23:33:35 星期一 点击查看代码 ``` #include #define tab_width 4 //制表符占4位 int main() { int c_in, cnt, cnt_tmp, space_nu 阅读全文
posted @ 2023-07-17 23:35 语巫 阅读(63) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-17 10:30:52 星期一 制表符的作用是将光标移至最接近8的整数倍的位置,比如1~8 > 9,9~16 > 17等等,我常用制表符为4width,所以,1~4 > 5, 5~8 > 9... 点击查看代码 ``` 阅读全文
posted @ 2023-07-17 20:03 语巫 阅读(72) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-15 21:41:44 星期六 点击查看代码 ``` #include #include void reverse( char *s ); void reverse_in(); int main() { reverse_ 阅读全文
posted @ 2023-07-15 21:43 语巫 阅读(181) 评论(0) 推荐(0)
摘要: # Archlinux GCC 13.1.1 20230429 2023-07-15 16:24:47 星期六 点击查看代码 ``` #include #include #define MAX_LINE_LENGTH 1000 int getline_n(char line[], int maxli 阅读全文
posted @ 2023-07-15 16:28 语巫 阅读(95) 评论(0) 推荐(0)
摘要: # 80个字符验证过于麻烦,改成8个字符。 Archlinux GCC 13.1.1 20230429 2023-07-15 15:42:21 星期六 点击查看代码 ``` #include #define MAX_LINE_LENGTH 1000 #define MIN_LINE_LENGTH 8 阅读全文
posted @ 2023-07-15 15:46 语巫 阅读(70) 评论(0) 推荐(0)