freopen重定向
2019-08-21 本文已影响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;
}