Eclipse provides many good features for programmers. For instance, the "Auto-Complete" will remind programmers of the methods or properties of the class. In the very beginning, eclipse can only support Java language. Now, for C/C++ programmers, they also can get benefits from using the awesome tool.
Download CDT:
Before install CDT, you need a eclipse installed in your system. If you don't have it, please see the previous post to install it[Eclipse] Eclipse HowTo
Download CDT 5.x for Eclipse 3.4x
Download CDT 6.x for Eclipse 3.5x or higher
Installation:
start your eclipse, click "Help-> Install New Software",click the "Add" button, then, Click the "Archive" button, select the CDT archive you had downloaded. Click "OK" to install the plugin.
Create a C/C++ Project:
Click "File->New->Project->C Project",
given a name for the project and select the "Hello World ANSI C Project" as your project type. Click "Finish" to finish it.
After creating the project, you will see the workspace which is similar with the above screenshot.
Compile and Run:
Right-Click the "HelloWorld" Project, select "Run As->Local C/C++ Application",the output message would be displayed on console panel.
0 意見:
Post a Comment