加文件io怎么写

P1093 [NOIP2007 普及组] 奖学金

tiancaigeshou @ 2024-08-16 09:26:11

求指教


by happy_guest @ 2024-08-16 09:36:03

啊?洛谷支持文件io吗?


by happy_guest @ 2024-08-16 09:37:51


int main(){
    freopen("xxx.in","r",stdin);
    freopen("xxx.out","w",sttdout);
    //do somehing...
    return 0;
}

by cyq32ent @ 2024-08-16 17:18:05

@dengyongjia133 你stdout写成sttdout了(


by happy_guest @ 2024-08-16 23:30:20

Oops...

int main(){
    freopen("xxx.in","r",stdin);
    freopen("xxx.out","w",stdout);
    //do somehing...
    return 0;
}

@cyq32ent 谢谢指点。


|