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


 

Assignments and Solutions:

 


                             Out date                          Due date                Additional files


P1                         Jan 23                             Jan 31                   test.dat

                                                                                                P1.exe

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

                                                                                                swap

 

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


 

Handout and Lecture notes

 

CMSC 246 stuff

 

Class             Feb 14

Pointer          Feb 14

Pointer-2       Feb 14

Link List        Feb 14

Iostream.h?

Quick Debug                      March 22

Notes for Stack       March 22

Notes for Polymorphism.

                   March 22

Notes for Template, Queue, Tree             April 13

 

CMSC 245 stuff

Account and Submission                   Chapter 2

Visual .Net Handout                         Chapter 3

Chapter 0                                        Chapter 4     

Chapter 1                                       

Chapter 5

Chapter 9 -------------The old fashioned C file I/O

 

Announcement:

·      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 12, The swap function is provided in the solution at /home/cmsc246/p3/E-phonebook.cc. A snap shot of relevant code are post in the download section above.

·       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.

·       March 7: Project 3 is up.

o     Midterm is on the first Tuesday after spring break.

·       Feb 22: Regarding P2…….

o     Student email: quota ``On the example your comand is "find computer"  and the program outputs " Computer Engineering ***-**** " would you like our find function to not be case sensetive like the example?’’

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.

·       Feb 7: Reading: Chapter 14.

o     Topic: Pointer,

o     new/delete operation

·       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.

·       Jan 23: Attention! If you don’t have an account on the Linux server, you will need to sign up tomorrow in class.

·       Jan 19: Topic for next week: class. Read the Chapter 5.