CodeBlocks Hands-On Guide

There are many C++ development environments. In the past, VC++6.0 was used in the teaching process, but since Windows was upgraded to Windows8 and Windows10, the use of VC++6.0 was not so smooth. After going online and comparing through practice, I plan to teach Code::Blocks is used in the program, and its advantages are as stated on the official website (http://www.codeblocks.org): open source, cross-platform, and free.

1. Download

(1) Open the official website, enter http://www.codeblocks.org/ in the browser, and click Downloads

 

(2) Select the download type. For ordinary users, download the first type.

 

(3) Download the file. Since the Windows platform is generally used, the platform provides 6 kinds of downloads. It is recommended to download the fifth kind. This file has a compiler without installation. (The one with MINGW means that the compiler is included in the installation file). When downloading, it is recommended to download to the root directory of a certain drive letter.


2. Run

      Unzip the unzip package and double-click the codeblocks.exe file to use it. For convenience, create a shortcut on the desktop after unzipping.

3. How to program

(1) Start codeblocks



4. Frequently Asked Questions

(1) Garbled characters

Open Settings->Compiler

In the pop-up window, select the "Other compiler options" tab, and enter the following in the text box below

-finput-charset=GBK
-fexec-charset=GBK



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325650396&siteId=291194637