Compile C'sSource codeThere are many ways. Many people write in the integrated compiling environment of Visual C ++CodeOf course. However, I think VISUAL C ++ is too big, and it takes several seconds to start it. AsAlgorithmIn terms of the competition, it is really a bit of a "Anti-Spam" feeling.
If you use NotePad to write the C source code, of course, you can, but the writing is "Black and White" is not so beautiful.
When I write the C source code, I use notepad2. You can see:
Her features and advantages include:
- The title bar contains the source code file name and path.
- The row number is displayed on the left.
- The source code contains color prompts such as keywords, values, strings, and so on.
- The current row has a pale yellow background prompt.
- You can also scale the character size, add bookmarks, or something.
Notepad2 is a free software! (It's cool !) Can be downloaded from here (http://www.flos-freeware.ch/notepad2.html. Note: download the file http://www.flos-freeware.ch/zip/notepad2.zip. Decompress the package to a folder, such as D: \ Temp, as follows:
Create a. c source file (new text document) as follows:
Of course, at this time, the test. C is still blank. Run notepad2.exein notepad2to start notepad2.exe, for example:
Next, drag and drop the test. c created earlier to the notepad2 window. Pay attention to the title bar of notepad2, which has changed:
Then you can start to write your C source code.
Do not forget to save the file at any time during writing !!!