#include <iostream>
using namespace std;
int main(){
freopen("C:\\Users\\Rice\\Desktop\\rice.txt","r",stdin);
int n, max = 0;
while(cin >> n){
if( n > max)
max = n;
}
printf("%d",max);
return 0;
}
#include <iostream>
using namespace std;
int main(){
freopen("C:\\Users\\Rice\\Desktop\\rice.txt","r",stdin);
int n, max = 0;
while(cin >> n){
if( n > max)
max = n;
}
printf("%d",max);
return 0;
}
本文标题:freopen重定向
本文链接:https://www.haomeiwen.com/subject/havwsctx.html
网友评论