#include<stdio.h>
int main() {
char temp;
//EOF表示无输入内容
while((scanf("%c", &temp)) != EOF) {
if(temp != '\n') {
//在此输入运行内容等
}
}
}
关于多组每行输入的模版
最新推荐文章于 2022-03-21 15:55:10 发布
#include<stdio.h>
int main() {
char temp;
//EOF表示无输入内容
while((scanf("%c", &temp)) != EOF) {
if(temp != '\n') {
//在此输入运行内容等
}
}
}