摘要: 测试程序1: #include <stdio.h> int main(void) { char ch; printf("please input an character: \n"); while((ch = getchar()) != '#') printf("xxx\n"); return 0; 阅读全文
posted @ 2021-08-25 23:07 小鲨鱼2018 阅读(431) 评论(0) 推荐(0)
摘要: c语言中使用程序读取文件。 #include <stdio.h> #include <stdlib.h> int main() { int ch; FILE * fp; char fname[50]; printf("enter the name of the file: "); scanf("%s 阅读全文
posted @ 2021-08-25 01:31 小鲨鱼2018 阅读(627) 评论(0) 推荐(0)