April 9, 2004
(Home Work 6 - Due April 16)
- ASSIGNMENT: Read the material from the links given below
regarding Standard Template Library
- Since next week is "exam preparation week," you are not required
to implement and submit any programs. However, you are expected to
understand the concept and it will be a part of the final exam.
- (Extra Credit)
If someone wants to implement them, 15 points extra credit will
be added to the finals for implementing both. If you plan to implement
them, you should write your programs to demonstrate that they work.
Submit them as regular assignments to the GSA by friday April 18.
Feb 15, 2004
(Corrections on HW3)
- Question two it should be "Programs 5.14 and 5.15" not 5.16.
Feb 4, 2004
(Corrections and hints on HW2)
- If you have your own implementation which is already working - do
not worry about the hints provided below. But try to see if these hints
will improve your implementation
- If your implementation provides something better than the
specification - implement that and briefly explain why it is better.
Although I will not award points for that it will be noted (which may
be used if you are in a boundary between grades!).
- In the implementation file, use the following for member function
equal:
bool
Complex::equal(const Complex &x )
{
return ( realPart = = x.realPart &&
imaginaryPart = = x.imaginaryPart);
}
Here const is
not really essential but its use is a good practice because you do not
want to change the object's internal variables through these functions.
If you have an implementation with bool
Complex::equal(const Complex x) that is fine. In
that case try, to see the difference.
- Similalry, in implementation file, for add (and
hence simiarly for others), use the following
Complex
Complex::add(const Complex &x )
{
// your code
}
- In the header file your class definition:
class Complex {
// some
members are public and some are private
Complex add(const Complex & );
bool equal(const Complex &);
// Add other members
};
Jan 26, 2004
- You can submit your assignments by midnight, Wednesday, Jan 28.
- In Tuesday's class, we will discuss the problems you are having
with the assignment. If you have spent a lot of time on a program and
do not have a clue why it is not working, send the file as attachment
to me. Based on what I receive, I will go through general programming
issues in class.
Jan 21, 2004
- Based on requests from the student in class the due date for HW1
has been extended. Please submit the assignments by midnight, Moday,
Jan 26.
- A short tuorial has been prepared by the TA to help those who
might be having problem using VC++ environment (check the main page).