C++ Programming Examples

Eclipse note: I haven't figured out a way to upload a single Eclipse project so you can easily download and use it. So I've uploaded a couple of whole workspaces (each containing several projects). Open one of these; it should open automatically in WinRAR or WinZIP or something like that. Extract the relevant folder (e.g. sept23 to somewhere on your hard drive -- it doesn't matter, as long as you know where it is. Then start Eclipse (if you haven't already), choose "File->Import->General->Existing Projects into Workspace", and select the folder you extracted. You should see a list of all the projects in that folder, so you can choose with checkboxes which of them to import into your own Eclipse workspace. After this, you can delete the extracted folder from wherever you put it, because its contents have been copied into your Eclipse workspace.

Alternatively, you could extract the relevant folder into someplace relatively safe (like the "persistent" F: drive on the lab computers) and, in Eclipse, "File->Switch Workspace" to that folder. This way the only projects you'll see are the ones that I packaged up, not also your own previous projects.

In the case of single files (like hello.cpp, testconst.cpp, etc.), download the file to somewhere, create a C++ project, choose "File->Import->General->File system", and choose the folder you downloaded it into; you should see a list of possible files in that folder, and can choose with checkboxes which of them to import into your project.


Last modified:
Stephen Bloch / sbloch@adelphi.edu