freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); /* 正常代码的canf和printf */ fclose(stdin); fclose(stdout);//it->first.c_str()