摘要:
当字符遇上 scanf() 要当心 看一下程序 char ch1,ch2; printf("请输入ch1,ch2的值:"); scanf("%c %c",&ch1,&ch2); printf("ch1 = %c, ch2 = %c\n",ch1,ch2); printf("请再次输入ch1的值:") 阅读全文
posted @ 2024-05-09 17:09
沉舟道人
阅读(46)
评论(1)
推荐(1)
摘要:
**设计程序,获取当前系统时间,把时间转换为特定格式”yy年mm月dd日 星期x tt:mm:ss”,并每隔1s写入到本地磁盘中一个叫做log.txt的文本中,如果文本不存在则创建。** /** * file name:format_time_text_writing.c * author : li 阅读全文
posted @ 2024-05-09 10:29
沉舟道人
阅读(39)
评论(0)
推荐(0)

浙公网安备 33010602011771号