CMSC 246 – Advanced Programming using C++
Spring 2006
Instructor: Dr. Ju Wang (
jwang3@vcu.edu )
Office: 406 Eng Bldg.
Phone: 440-6729
TA: Mbonisi Masilela (masilelam@vcu.edu),
Hour:
8:00-11:00 am, Friday in the computer lab (first floor)
Class meetings:Tues/Thur, 11:00--12:15
Class Room: ENG
Building-106
Office Hours: Tues/Thur from 10:00-11:00 , or by appointment.
Course Syllabus | announcement | Lecture Notes | Assignments
Out date Due date Additional files
P1 comments Feb
14
Grading Scheme Feb
14
P2 Feb
15 Feb 23 P2data.txt
P3 March
7 March 21 P3data.txt
Solution
available
April
3 At
/home/cmsc246/p3
P4 April
10 April 17 P4data.txt
1. Copy the tree.cc under /home/cmsc246/ to start with
2. Implement function WFTraversalLayered() of class Tree.
3. You program should generate output similar to this one.
4. Hint: Here is
one possible way to do this job
5. Due: May 3, email submission.
About library:
--Qeustion:
``I am having trouble including the jpeg libarary. I have tried #include<libjpeg>, #include<ljpeg>, #include<libjpeg.h>, #include<libjpeg.a>, #include<ljpeg.h> with and without "using namespace std", both on and off the linux server all saying that it can't find the header file. I had a little more success with something like #include"/usr/include/jpeglib.h" but it threw errors, probably becuase it isn't the right library…’’
--Reply:
You include the jpeg head file by
#include <jpeglib.h>, see the testjpeg.cc
CMSC 246 stuff
Class Feb
14
Pointer Feb
14
Pointer-2 Feb
14
Link List Feb 14
Quick Debug March
22
Notes for Stack March 22
Notes for Polymorphism.
March 22
Notes for Template, Queue, Tree April 13
Account and Submission Chapter 2
Chapter 9 -------------The old fashioned C file I/O
· Sample test.
· Study
guide for final test
· Final test: 9:00-11:00, May 9 @ room 106.
· April 21, 2006, About OengGL: Follow instructions
under /home/cmsc246/opengl/glut/readme.txt, make proper adjustment if you only
have MS visual .net. copy the three examples to your local direct machine and
test them.
· Check out tree.cc and template_example.cc
at /home/cmsc246
· April 3, solution for P3 is under
/home/cmsc246/p3
· March 28, check out and run the poly.cc at /home/cmsc246/ to exercise the
polymorphism in C++.
· March 22: check out the new lecture
notes above.
o
Topics: stack, polymorphism, and virtual function.
o
Midterm is on the first Tuesday after spring break.
o
That will be some
nice feature. But it is not required for this project.
· Feb 15: Test 1 will be Thursday, Feb
23.
· Feb 14: check out new lecture notes.
· Jan 24: Also read Chapter 2, section 3.
o All account is set up now. If you
have any trouble accessing, report to Dr. Wang.
o Your TA is Mr. Mbonisi Masilela, his email
is masilelam@vcu.edu.