附使用Codeblocks和VisualStudio的代码:
#ifdef __GNUC__
#include <bits/stdc++.h>
#else
#include "bits/stdc++.h"
#pragma warning(disable:4996)
#endif // __GNUC__
using namespace std;
int main()
{
// freopen("in.txt","r",stdin);
// freopen("out.txt","w",stdout);
#ifndef __GNUC__
system("pause");
#endif // !__GNUC__
return 0;
}