部分题目需要文件操作

liuser 2019-04-03 14:13:10 2019-05-30 10:09:27 45

致所有同学:
本网站部分题目开启了文件操作,做题时候请认真观察,如果有文件操作的请按照要求正确的输入输出。

示例图片

stdoutstdin包含在头文件 cstdio中,请注意!!!使用了万能头文件则不存在该问题

示例代码如下:

#include <iostream>
#include <cstdio>
using namespace std;

int main(void)
{
    freopen("B.in","r",stdin);
    freopen("B.out","w",stdout);
    //...

    return 0;
}
{{ vote && vote.total.up }}

共 3 条回复

luoyaojie

freopen("B.in","r",stdin); freopen("B.out","w",stdout);

daizijian

ohhhhhh

daizijian

ohhhhhh