c/c++重定向输入输出

#define Local

#include <iostream>

#include <cstdio>

//#include <stdio.h>

using namespace std;

int main()

{

#ifdef Local

  freopen("datain.txt","r",stdin);

  freopen("dataout.txt","r",stdout);

.

.

.

}

posted @ 2015-03-17 15:28  ediszhao  阅读(205)  评论(0编辑  收藏  举报