Compile from Command-Line
You may compile from the command-line if you wish, but will need Eclipse (or another IDE)
for debugging.
Install Eclipse for C++
Instructions from Eclipse: Install Eclipse for C++.
- Click on the p2 software repository link that matches your version of Eclipse.
- Start Eclipse, then select Help --> Install --> Available Software.
- Copy the URL from step 1 and paste it into the Work with: field.
- Select the defaults and Finish.
- More
instructions if needed.
Make sure you can compile, run, and debug:
- Restart Eclipse and look at the "C/C++ Development" Overview and complete the "Before You Begin"
and "Getting Started" steps for your platform.
- Create your Hello World project as a C++ project.
- Edit your Preferences --> C/C++ --> Code Style --> Formatter. Of the presets, I recommend GNU.
- Build and run HelloWorld.
- Run as a Local C/C++ Application - your output is in the Console window.
- Debug it - add a break point in the cout statement.
Create another project (as a Hello World C++ project).
When you have it finished, submit it via Autolab.
In your zip-file, include a file called play.out that has the output of
running your program. It should be at the top level,
with the src and include directories underneath, and each
containing the proper .h and .cpp file(s).