#define LOCAL #include <iostream> #include <string> #include <cstring> #include <cstdlib> #include <cstdio> #include <cmath> #include <algorithm> #include <stack> using namespace std; #define mem(a,b) memset(a,b,sizeof(a)) #define pf printf #define sf scanf #define debug printf("! ") #define INF 10000 #define MAX(a,b) a>b?a:b #define blank pf(" ") #define LL long long #ifdef LOCAL freopen("data.in","r",stdin); freopen("data.out","w",stdin); #endif // LOCAL
重定向
int main() { File *fin,*fout; fin = fopen("data.in","rb"); fout = fopen("data.out","wb"); int m; fsf("%d",&m); fpf("%d ",m); fclose(fin); fclose(fout); return 0; }
标准