Use Eclipse to play C, C ++, and eclipse
Because of Java Development, I am used to using Eclipse. Now I need to write C ++ programs. I really don't want to use a heavyweight IDE like VS. VC ++ 6.0 is so unfriendly. Use a familiar IDE to work well. To develop C ++ and C Programs on Eclipse, you need to make the following preparations:
1. Install the CDT plug-in on Eclipse
Open [Help] and [Eclipse Marketplace] in sequence]
Search for CDT under search:
Then install.
2. Install minGw
Http://www.mingw.org/
Download and install the tool. After the tool is downloaded, you can select the class library you need.
3. Create a project
When creating a project, you can see that Eclipse can automatically find the corresponding compiler mingw.
Same as using VC ++ 6.0, You need to compile before execution. Right-click the project name and choose build project to compile the project.
If debugging is required:
The following is the test code I wrote:
It seems that Eclipse is still so sharp.