下面是我写的:
#include <iostream>
using namespace std;
int main(){
int a,b,c,i;
while(cin>>a>>b>>c){
cout<<((a>b?a:b)>c?(a>b?a:b):c)<<endl;
}
return 0;
}
这个需要手动输入
Ctrl-Z↙
该怎么写?
下面是我写的:
#include <iostream>
using namespace std;
int main(){
int a,b,c,i;
while(cin>>a>>b>>c){
cout<<((a>b?a:b)>c?(a>b?a:b):c)<<endl;
}
return 0;
}
这个需要手动输入
Ctrl-Z↙
该怎么写?
ctrl+z不用写,当你不想输入的时候,先按下ctrl+z,再按回车就代表输入结束了
觉得有用的话采纳一下哈