跳到正文

个人记录

Dev-C++个人配置

Cerr约 37 分钟
原文
文章信息与版本

文章信息

发布
2026年1月12日
收录
2026年4月18日
更新
2026年8月16日
篇幅
约 37 分钟

版本

  1. v2当前
  2. v1
INFO
代码
[CompilerSets_0]
gcc.exe=gcc.exe
g++.exe=g++.exe
gdb.exe=gdb.exe
mingw32-make.exe=mingw32-make.exe
windres.exe=windres.exe
gprof.exe=gprof.exe
Options=0000000000110000000000000
CompOpt=-std=c++14 -O2 -fexec-charset=GB2312 -luser32 -lgdi32
LinkOpt=-static-libgcc
CompAdd=1
LinkAdd=0
Bins=%path%\MinGW64\bin;%path%\MinGW64\x86_64-w64-mingw32\bin
C=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include
Cpp=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++
Lib=%path%\MinGW64\lib;%path%\MinGW64\x86_64-w64-mingw32\lib
[CompilerSets_1]
gcc.exe=gcc.exe
g++.exe=g++.exe
gdb.exe=gdb.exe
mingw32-make.exe=mingw32-make.exe
windres.exe=windres.exe
gprof.exe=gprof.exe
Options=0000000000000000001000000
CompOpt=
LinkOpt=-static-libgcc
CompAdd=0
LinkAdd=1
Bins=%path%\MinGW64\bin;%path%\MinGW64\x86_64-w64-mingw32\bin
C=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include
Cpp=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++
Lib=%path%\MinGW64\lib;%path%\MinGW64\x86_64-w64-mingw32\lib
[CompilerSets_2]
gcc.exe=gcc.exe
g++.exe=g++.exe
gdb.exe=gdb.exe
mingw32-make.exe=mingw32-make.exe
windres.exe=windres.exe
gprof.exe=gprof.exe
Options=0000000000000000100000000
CompOpt=
LinkOpt=-static-libgcc
CompAdd=0
LinkAdd=1
Bins=%path%\MinGW64\bin;%path%\MinGW64\x86_64-w64-mingw32\bin
C=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include
Cpp=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++
Lib=%path%\MinGW64\lib;%path%\MinGW64\x86_64-w64-mingw32\lib
[CompilerSets_3]
gcc.exe=gcc.exe
g++.exe=g++.exe
gdb.exe=gdb32.exe
mingw32-make.exe=mingw32-make.exe
windres.exe=windres.exe
gprof.exe=gprof.exe
Options=0000000100000000000000000
CompOpt=
LinkOpt=-static-libgcc
CompAdd=0
LinkAdd=1
Bins=%path%\MinGW64\bin;%path%\MinGW64\x86_64-w64-mingw32\bin
C=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include
Cpp=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++
Lib=%path%\MinGW64\lib32;%path%\MinGW64\x86_64-w64-mingw32\lib32
[CompilerSets_4]
gcc.exe=gcc.exe
g++.exe=g++.exe
gdb.exe=gdb32.exe
mingw32-make.exe=mingw32-make.exe
windres.exe=windres.exe
gprof.exe=gprof.exe
Options=0000000100000000001000000
CompOpt=
LinkOpt=-static-libgcc
CompAdd=0
LinkAdd=1
Bins=%path%\MinGW64\bin;%path%\MinGW64\x86_64-w64-mingw32\bin
C=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include
Cpp=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++
Lib=%path%\MinGW64\lib32;%path%\MinGW64\x86_64-w64-mingw32\lib32
[CompilerSets_5]
gcc.exe=gcc.exe
g++.exe=g++.exe
gdb.exe=gdb32.exe
mingw32-make.exe=mingw32-make.exe
windres.exe=windres.exe
gprof.exe=gprof.exe
Options=0000000100000000100000000
CompOpt=
LinkOpt=-static-libgcc
CompAdd=0
LinkAdd=1
Bins=%path%\MinGW64\bin;%path%\MinGW64\x86_64-w64-mingw32\bin
C=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include
Cpp=%path%\MinGW64\include;%path%\MinGW64\x86_64-w64-mingw32\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include;%path%\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++
Lib=%path%\MinGW64\lib32;%path%\MinGW64\x86_64-w64-mingw32\lib32
[CompilerSets]
0=TDM-GCC 4.9.2 64-bit Release
1=TDM-GCC 4.9.2 64-bit Debug
2=TDM-GCC 4.9.2 64-bit Profiling
3=TDM-GCC 4.9.2 32-bit Release
4=TDM-GCC 4.9.2 32-bit Debug
5=TDM-GCC 4.9.2 32-bit Profiling
Current=0
[
[Options]
Language="Chinese.lng"
Theme="New Look"
First=0
Splash=""
MRUMax=15
ShortenCompPaths=0
MinOnRun=0
ConsolePause=1
BackUps=0
AutoOpen=2
MsgTabs=0
InterfaceFont="Segoe UI"
InterfaceFontSize=9
ShowBars=1
MultiLineTab=1
DefCpp=1
OutputHeight=183
ShowLeftPages=0
LeftActivePage=1
ProjectWidth=0
Statusbar=1
FullScreen=0
FindCols="75, 75, 120, 150"
CompCols="75, 75, 120, 150"
ToolbarMain=0
ToolbarMainX=1062
ToolbarMainY=2
ToolbarEdit=0
ToolbarEditX=1062
ToolbarEditY=2
ToolbarCompile=0
ToolbarCompileX=1062
ToolbarCompileY=2
ToolbarProject=0
ToolbarProjectX=1062
ToolbarProjectY=2
ToolbarSpecials=0
ToolbarSpecialsX=1062
ToolbarSpecialsY=2
ToolbarSearch=0
ToolbarSearchX=987
ToolbarSearchY=2
ToolbarClasses=0
ToolbarClassesX=11
ToolbarClassesY=2
ToolbarCompilers=0
ToolbarCompilersX=686
ToolbarCompilersY=2
AssociateC=1
AssociateCpp=1
AssociateCxx=0
AssociateH=1
AssociateHpp=1
AssociateHxx=0
AssociateDev=1
AssociateRc=1
AssociateTemplate=1
CheckAssocs=0
ShowTipsOnStart=0
LastTip=0
ShowProgress=1
AutoCloseProgress=0
PrintColors=1
PrintHighlight=1
PrintWordWrap=0
PrintLineNumbers=1
PrintLineNumbersMargins=0
WatchHint=1
UseATTSyntax=1
ShowCPUSignal=1
CPURegisterCol1=70
CPURegisterCol2=104
CPURegisterCol3=10
CaseSensitive=0
Wholewords=0
PromptReplace=0
ScopeIsSelected=1
OriginEntireScope=0
SearchWhere=1
DirBackward=0
ProjectFloat=0
MessageFloat=0
[Options.WindowState]
Left=43
Top=195
Right=1306
Bottom=871
ShowCmd=1
Flags=0
[Options.ReportWindowState]
Left=0
Top=0
Right=0
Bottom=0
ShowCmd=0
Flags=-1
[Options.ProjectWindowState]
Left=0
Top=0
Right=0
Bottom=0
ShowCmd=0
Flags=-1
[Directories]
Default="%AppData%\..\..\Desktop\"
Help="%path%\Help\"
Icons="%path%\Icons\"
Lang="%path%\Lang\"
Templates="%path%\Templates\"
Themes="%path%\Themes\"
[Editor]
AutoIndent=1
AddIndent=1
InsertMode=0
UseTabs=1
SmartTabs=0
GroupUndo=1
EHomeKey=1
PastEOF=0
PastEOL=0
FindText=1
Scrollbars=1
HalfPageScroll=0
ScrollHint=1
SpecialChars=0
ShowFunctionTip=1
TrimTrailingSpaces=1
TabSize=4
MarginVis=0
MarginSize=80
MarginColor=-16777194
InsertCaret=0
OverwriteCaret=3
InsDropFiles=0
GutterVis=1
GutterAuto=1
LineNumbers=1
LeadZero=0
FirstLineZero=0
Gutterfnt=0
GutterSize=3
UseSyntax=1
SyntaxExt="c;cpp;h;hpp;cc;cxx;cp;hp;rh;fx;inl;tcc;win;;"
DefaultCode=1
ParserHints=1
Match=1
HighCurrLine=1
HighColor=3877666
EnableAutoSave=1
Interval=1
AutoSaveFilter=0
AutoSaveMode=0
BraceComplete=1
ParentheseComplete=1
IncludeComplete=1
CommentComplete=0
ArrayComplete=1
SingleQuoteComplete=1
DoubleQuoteComplete=1
CompleteSymbols=1
DeleteSymbolPairs=1
[Editor.Font]
Charset=1
Color=-16777208
Height=-16
Name="Consolas"
Pitch=0
Size=12
[Editor.Gutterfont]
Charset=1
Color=-16777208
Height=-16
Name="Consolas"
Pitch=0
Size=12
[Editor.Syntax]
Assembler=clWhite, $0233241C, 0, 0, 0
Character=$0039E455, $0233241C, 0, 0, 0
Comment=$00E09A1E, $0233241C, 0, 0, 0
Float=$00833AFF, $0233241C, 0, 0, 0
Hexadecimal=$00833AFF, $0233241C, 0, 0, 0
Identifier=$00FFC56A, $0233241C, 0, 0, 0
Illegal Char=$008080FF, $023324FB, 0, 0, 0
Number=$005C95FF, $0233241C, 0, 0, 0
Octal=$00833AFF, $0233241C, 0, 0, 0
Preprocessor=$0061CDEA, $0233241C, 0, 0, 0
Reserved Word=$00FF8AB7, $0233241C, 0, 0, 0
Space=$0033241C, $0233241C, 0, 0, 0
String=$0086ED3C, $0233241C, 0, 0, 0
Symbol=$0061CDEA, $0233241C, 0, 0, 0
Breakpoints=16777215, 34918
Error line=16777215, 6842623
Active breakpoints=16776960, 12030720
Gutter=12566272, 3351580
Selected text=16776960, 5981755
Folding lines=7622977, 5328448
[CodeCompletion]
Width=320
Height=300
Delay=2000
BackColor=16777215
Enabled=1
ParseLocalHeaders=1
ParseGlobalHeaders=1
[ClassBrowsing]
ShowFilter=2
ShowInheritedMembers=0
[ExternalPrograms]
Dummy=0
[Formatter]
BracketStyle=2
IndentStyle=2
TabWidth=4
MaxLineLength=80
ModifyMaxLineLength=0
IndentClasses=1
IndentSwitches=1
IndentCases=0
IndentNamespaces=1
IndentLabels=0
IndentPreprocessor=1
FullCommand="-A2 --indent=tab=4 --indent-classes --indent-switches --indent-namespaces --indent-preprocessor"
AStyleDir="AStyle\"
AStyleFile="AStyle.exe"
C++
#include<windows.h>
#ifndef CHAR
#define CHAR char
#endif
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
string ini("[\
CompilerSets_0]\ngcc.exe=gcc.exe\ng++.exe=g++.exe\ngdb.exe=gdb.exe\nmingw32-make.exe=mingw32-make.exe\nwindres.exe=windres.exe\ngprof.exe=gprof.exe\nOptions=\
0000000000110000000000000\nCompOpt=-std=c++14 -O2 -fexec-charset=GB2312 -luser32 -lgdi32\nLinkOpt=-static-libgcc\nCompAdd=1\nLinkAdd=0\nBins=%path%\\MinGW64\
\\bin;%path%\\MinGW64\\x86_64-w64-mingw32\\bin\nC=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw3\
2\\4.9.2\\include\nCpp=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include;%path%\\Mi\
nGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\\c++\nLib=%path%\\MinGW64\\lib;%path%\\MinGW64\\x86_64-w64-mingw32\\lib\n[CompilerSets_1]\ngcc.exe=gcc.exe\ng++.e\
xe=g++.exe\ngdb.exe=gdb.exe\nmingw32-make.exe=mingw32-make.exe\nwindres.exe=windres.exe\ngprof.exe=gprof.exe\nOptions=0000000000000000001000000\nCompOpt=\nLi\
nkOpt=-static-libgcc\nCompAdd=0\nLinkAdd=1\nBins=%path%\\MinGW64\\bin;%path%\\MinGW64\\x86_64-w64-mingw32\\bin\nC=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-\
w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\nCpp=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path\
%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\\c++\nLib=%path%\\MinGW64\\lib;%path%\\MinGW64\\x\
86_64-w64-mingw32\\lib\n[CompilerSets_2]\ngcc.exe=gcc.exe\ng++.exe=g++.exe\ngdb.exe=gdb.exe\nmingw32-make.exe=mingw32-make.exe\nwindres.exe=windres.exe\ngprof\
.exe=gprof.exe\nOptions=0000000000000000100000000\nCompOpt=\nLinkOpt=-static-libgcc\nCompAdd=0\nLinkAdd=1\nBins=%path%\\MinGW64\\bin;%path%\\MinGW64\\x86_64-w64\
-mingw32\\bin\nC=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\nCpp=%path%\\Min\
GW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw\
32\\4.9.2\\include\\c++\nLib=%path%\\MinGW64\\lib;%path%\\MinGW64\\x86_64-w64-mingw32\\lib\n[CompilerSets_3]\ngcc.exe=gcc.exe\ng++.exe=g++.exe\ngdb.exe=gdb32.exe\nm\
ingw32-make.exe=mingw32-make.exe\nwindres.exe=windres.exe\ngprof.exe=gprof.exe\nOptions=0000000100000000000000000\nCompOpt=\nLinkOpt=-static-libgcc\nCompAdd\
=0\nLinkAdd=1\nBins=%path%\\MinGW64\\bin;%path%\\MinGW64\\x86_64-w64-mingw32\\bin\nC=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\M\
inGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\nCpp=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64\
-mingw32\\4.9.2\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\\c++\nLib=%path%\\MinGW64\\lib32;%path%\\MinGW64\\x86_64-w64-mingw32\\lib32\n[C\
ompilerSets_4]\ngcc.exe=gcc.exe\ng++.exe=g++.exe\ngdb.exe=gdb32.exe\nmingw32-make.exe=mingw32-make.exe\nwindres.exe=windres.exe\ngprof.exe=gprof.exe\nOptions\
=0000000100000000001000000\nCompOpt=\nLinkOpt=-static-libgcc\nCompAdd=0\nLinkAdd=1\nBins=%path%\\MinGW64\\bin;%path%\\MinGW64\\x86_64-w64-mingw32\\bin\nC=%path%\\\
MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\nCpp=%path%\\MinGW64\\include;%path%\\Mi\
nGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\\c++\nL\
ib=%path%\\MinGW64\\lib32;%path%\\MinGW64\\x86_64-w64-mingw32\\lib32\n[CompilerSets_5]\ngcc.exe=gcc.exe\ng++.exe=g++.exe\ngdb.exe=gdb32.exe\nmingw32-make.exe=mi\
ngw32-make.exe\nwindres.exe=windres.exe\ngprof.exe=gprof.exe\nOptions=0000000100000000100000000\nCompOpt=\nLinkOpt=-static-libgcc\nCompAdd=0\nLinkAdd=1\nBins=\
%path%\\MinGW64\\bin;%path%\\MinGW64\\x86_64-w64-mingw32\\bin\nC=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86\
_64-w64-mingw32\\4.9.2\\include\nCpp=%path%\\MinGW64\\include;%path%\\MinGW64\\x86_64-w64-mingw32\\include;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\inc\
lude;%path%\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include\\c++\nLib=%path%\\MinGW64\\lib32;%path%\\MinGW64\\x86_64-w64-mingw32\\lib32\n[CompilerSets]\n0=TDM\
-GCC 4.9.2 64-bit Release\n1=TDM-GCC 4.9.2 64-bit Debug\n2=TDM-GCC 4.9.2 64-bit Profiling\n3=TDM-GCC 4.9.2 32-bit Release\n4=TDM-GCC 4.9.2 32-bit Debug\n5=\
TDM-GCC 4.9.2 32-bit Profiling\nCurrent=0\n[\n[Options]\nLanguage=\"Chinese.lng\"\nTheme=\"New Look\"\nFirst=0\nSplash=\"\"\nMRUMax=15\nShortenCompPaths=0\nMinOnRun=0\
\nConsolePause=1\nBackUps=0\nAutoOpen=2\nMsgTabs=0\nInterfaceFont=\"Segoe UI\"\nInterfaceFontSize=9\nShowBars=1\nMultiLineTab=1\nDefCpp=1\nOutputHeight=183\nShowLe\
ftPages=0\nLeftActivePage=1\nProjectWidth=0\nStatusbar=1\nFullScreen=0\nFindCols=\"75, 75, 120, 150\"\nCompCols=\"75, 75, 120, 150\"\nToolbarMain=0\nToolbarMainX=\
1062\nToolbarMainY=2\nToolbarEdit=0\nToolbarEditX=1062\nToolbarEditY=2\nToolbarCompile=0\nToolbarCompileX=1062\nToolbarCompileY=2\nToolbarProject=0\nToolbarPro\
jectX=1062\nToolbarProjectY=2\nToolbarSpecials=0\nToolbarSpecialsX=1062\nToolbarSpecialsY=2\nToolbarSearch=0\nToolbarSearchX=987\nToolbarSearchY=2\nToolbarCla\
sses=0\nToolbarClassesX=11\nToolbarClassesY=2\nToolbarCompilers=0\nToolbarCompilersX=686\nToolbarCompilersY=2\nAssociateC=1\nAssociateCpp=1\nAssociateCxx=0\nAs\
sociateH=1\nAssociateHpp=1\nAssociateHxx=0\nAssociateDev=1\nAssociateRc=1\nAssociateTemplate=1\nCheckAssocs=0\nShowTipsOnStart=0\nLastTip=0\nShowProgress=1\nAut\
oCloseProgress=0\nPrintColors=1\nPrintHighlight=1\nPrintWordWrap=0\nPrintLineNumbers=1\nPrintLineNumbersMargins=0\nWatchHint=1\nUseATTSyntax=1\nShowCPUSignal=\
1\nCPURegisterCol1=70\nCPURegisterCol2=104\nCPURegisterCol3=10\nCaseSensitive=0\nWholewords=0\nPromptReplace=0\nScopeIsSelected=1\nOriginEntireScope=0\nSearchW\
here=1\nDirBackward=0\nProjectFloat=0\nMessageFloat=0\n[Options.WindowState]\nLeft=43\nTop=195\nRight=1306\nBottom=871\nShowCmd=1\nFlags=0\n[Options.ReportWindow\
State]\nLeft=0\nTop=0\nRight=0\nBottom=0\nShowCmd=0\nFlags=-1\n[Options.ProjectWindowState]\nLeft=0\nTop=0\nRight=0\nBottom=0\nShowCmd=0\nFlags=-1\n[Directories]\nDe\
fault=\"%AppData%\\..\\..\\Desktop\\\"\nHelp=\"%path%\\Help\\\"\nIcons=\"%path%\\Icons\\\"\nLang=\"%path%\\Lang\\\"\nTemplates=\"%path%\\Templates\\\"\nThemes=\"%path%\\Themes\\\"\n[\
Editor]\nAutoIndent=1\nAddIndent=1\nInsertMode=0\nUseTabs=1\nSmartTabs=0\nGroupUndo=1\nEHomeKey=1\nPastEOF=0\nPastEOL=0\nFindText=1\nScrollbars=1\nHalfPageScroll=\
0\nScrollHint=1\nSpecialChars=0\nShowFunctionTip=1\nTrimTrailingSpaces=1\nTabSize=4\nMarginVis=0\nMarginSize=80\nMarginColor=-16777194\nInsertCaret=0\nOverwrite\
Caret=3\nInsDropFiles=0\nGutterVis=1\nGutterAuto=1\nLineNumbers=1\nLeadZero=0\nFirstLineZero=0\nGutterfnt=0\nGutterSize=3\nUseSyntax=1\nSyntaxExt=\"c;cpp;h;hpp;c\
c;cxx;cp;hp;rh;fx;inl;tcc;win;;\"\nDefaultCode=1\nParserHints=1\nMatch=1\nHighCurrLine=1\nHighColor=3877666\nEnableAutoSave=1\nInterval=1\nAutoSaveFilter=0\nAut\
oSaveMode=0\nBraceComplete=1\nParentheseComplete=1\nIncludeComplete=1\nCommentComplete=0\nArrayComplete=1\nSingleQuoteComplete=1\nDoubleQuoteComplete=1\nCompl\
eteSymbols=1\nDeleteSymbolPairs=1\n[Editor.Font]\nCharset=1\nColor=-16777208\nHeight=-16\nName=\"Consolas\"\nPitch=0\nSize=12\n[Editor.Gutterfont]\nCharset=1\nColo\
r=-16777208\nHeight=-16\nName=\"Consolas\"\nPitch=0\nSize=12\n[Editor.Syntax]\nAssembler=clWhite, $0233241C, 0, 0, 0\nCharacter=$0039E455, $0233241C, 0, 0, 0\nC\
omment=$00E09A1E, $0233241C, 0, 0, 0\nFloat=$00833AFF, $0233241C, 0, 0, 0\nHexadecimal=$00833AFF, $0233241C, 0, 0, 0\nIdentifier=$00FFC56A, $0233241C, 0,\
 0, 0\nIllegal Char=$008080FF, $023324FB, 0, 0, 0\nNumber=$005C95FF, $0233241C, 0, 0, 0\nOctal=$00833AFF, $0233241C, 0, 0, 0\nPreprocessor=$0061CDEA, $023\
3241C, 0, 0, 0\nReserved Word=$00FF8AB7, $0233241C, 0, 0, 0\nSpace=$0033241C, $0233241C, 0, 0, 0\nString=$0086ED3C, $0233241C, 0, 0, 0\nSymbol=$0061CDEA, \
$0233241C, 0, 0, 0\nBreakpoints=16777215, 34918\nError line=16777215, 6842623\nActive breakpoints=16776960, 12030720\nGutter=12566272, 3351580\nSelected te\
xt=16776960, 5981755\nFolding lines=7622977, 5328448\n[CodeCompletion]\nWidth=320\nHeight=300\nDelay=2000\nBackColor=16777215\nEnabled=1\nParseLocalHeaders=1\n\
ParseGlobalHeaders=1\n[ClassBrowsing]\nShowFilter=2\nShowInheritedMembers=0\n[ExternalPrograms]\nDummy=0\n[Formatter]\nBracketStyle=2\nIndentStyle=2\nTabWidth=\
4\nMaxLineLength=80\nModifyMaxLineLength=0\nIndentClasses=1\nIndentSwitches=1\nIndentCases=0\nIndentNamespaces=1\nIndentLabels=0\nIndentPreprocessor=1\nFullCom\
mand=\"-A2 --indent=tab=4 --indent-classes --indent-switches --indent-namespaces --indent-preprocessor\"\nAStyleDir=\"AStyle\\\"\nAStyleFile=\"AStyle.exe\"\n[");
int main(){
	cout<<"\
    ____                        ______\n\
   / __ \\  ___  _   __         / ____/    __     __\n\
  / / / / / _ \\| | / / ______ / /      __/ /_ __/ /_\n\
 / /_/ / /  __/| |/ / /_____// /___   /_  __//_  __/\n\
/_____/  \\___/ |___/         \\____/    /_/    /_/  \n\n";
	STARTUPINFOA si={sizeof(si)};
    PROCESS_INFORMATION pi;
	if(CreateProcessA(NULL,"taskkill /f /im devcpp.exe",NULL,NULL,FALSE,0,NULL,NULL,&si,&pi)) {
        WaitForSingleObject(pi.hProcess,INFINITE);
        CloseHandle(pi.hProcess);
        CloseHandle(pi.hThread);
    }else
        cerr<<"Failed code:("<<GetLastError()<<")"<<endl;
	for(int i=0;i<=50;i++){
     	Sleep(1);
    	(cout<<'[').width(50);
		cout.fill('#');
		cout<<string(50-i,' ')<<"]\r";
	}cout<<endl;
	string username;
    char buffer[257];
    DWORD buffer_size=257;
    if(GetUserNameA(buffer,&buffer_size))
        username=buffer;
    else{
        cout<<"Cannot find username!"<<endl;return -1;
    }
    string at="C:/Users/"+username+"/AppData/Roaming/Dev-Cpp/devcpp.ini";
	ofstream fout(at.c_str());
	if(fout.is_open()==false){
		cout<<"Cannot open "<<at<<endl;
		return -1;
	}fout<<ini;cout<<"Write in \a"<<at<<endl;
}
原文