标签:int stdout mode lin 工具 lse pen code using
1 @echo off 2 mode con cols=25 lines=1 3 set /p a= 4 if %a:~-4%==.cpp ( 5 echo #include^<bits/stdc++.h^>>"%a%" 6 echo using namespace std;>>"%a%" 7 echo #define rep^(i,a,b^) for^(int i=a;i^<=b;++i^)>>"%a%" 8 echo #define ms^(arr,a^) memset^(arr,a,sizeof arr^)>>"%a%" 9 echo #define debug^(x^) cout^<^<"< "#x" = "^<^<x^<^<" >"^<^<endl>>"%a%" 10 echo int main^(^)>>"%a%" 11 echo {>>"%a%" 12 echo //freopen^("Input.txt","r",stdin^);>>"%a%" 13 echo //freopen^("Output.txt","w",stdout^);>>"%a%" 14 echo.>>"%a%" 15 echo //freopen^("CON","w",stdout^);>>"%a%" 16 echo //system^("start Output.txt"^);>>"%a%" 17 echo }>>"%a%" 18 ) else echo.>"%a%"
标签:int stdout mode lin 工具 lse pen code using
原文地址:https://www.cnblogs.com/maoruimas/p/9533224.html