#includestdioh#includestringhint main int n=0; scanfd&n; getchar; char str80; forint i=0;in;i++ int ret=-1; getsstr; int lenth=0; lenth=strlenstr;
在这组代码中,getchar()的作用是读取输入缓冲区中的换行符,以避免影响后续的输入操作。
原文地址: https://www.cveoy.top/t/topic/hH0d 著作权归作者所有。请勿转载和采集!