COMP 322 - 001

It is currently Thursday April 19th 11:36:38

Contact Information

E-mail: e-mail address

I check my e-mail everyday, so it's the best way to get in touch with me. If my office hours do not work for you, please contact me and we can arrange another time to meet.

For more information see my main page here.

Latest Information

10/27/2007 - Added Links to C++ Pages on the Main Page

10/05/2007 - Reminder - No Office Hours Monday, Office Hours on Tuesday as Normal: 11:00AM-12:30PM

10/03/2007 - Added This Page

Course Information

See the course webpage for more information.

My office hours this semester will be the following: My Office is in McConnell Engineering Room 322 (double doored lab):
campus map

Development Environment Setup

If you are running linux, you should have everything you need to run g++.
*All you need to do is type:

     g++ -Wall input.cpp -o input

If you are running windows, you'll need to download and install MinGW. *Be sure to install the g++ and make options.

The following tools can help you make coding in windows easier: Installation
Setting Your Path
Windows has a variable called PATH which is uses to search for programs like g++.
  1. Click Start
  2. Control Panel
  3. Dbl-Click System
  4. VISTA: Click Advanced System Properties on the left
  5. Click Advanced Tab
  6. Click Environmental Variables Button
  7. Click on PATH
  8. Click on Edit Button
  9. *Add a semi-colon ; and the path to the directory of MinGW bin (default is c:\MinGW\bin)
  10. Click OK
  11. Click OK
  12. Click OK
screenshot of path setup
You may also need to reboot before this will take effect.

Setting Up Syn
Syn can be setup to add a "Send To" link in your right-click menu. This is recommended.

Getting Syn to Compile
  1. Go to Run Menu
  2. Go to Run File then Configure
  3. Click the ... next to Profile
  4. Click add and type C++ as a name for the profile
  5. Click OK
  6. Click the Add Program Button
  7. Type in g++ where it now says New Program
  8. Program: C:\MinGW\bin\g++.exe
  9. Arguments: -W -Wall "$[ActiveDocLong]" -o "$[ActiveDocLongNoExt].exe"
  10. Directory: $[ActiveDocPathShort]
You can now hit F9 to compile your program. A command line box will pop-up displaying the result.

Syn Configuration Screen and Output Box

Running Your Program
Use windows explorer to go to the directory where your program is stored. Right-click on the directory and select "Open Command Window Here". *In Vista, You have to click the directory in the right-side pane while holding the shift key.* You should now have a dos prompt with your directory containing your newly created .exe file. Type in the name of your .exe file and hit return. Voila!

Page Last Updated: Saturday October 27th 13:59:33