simple assignment operator for a calender, and source code ques!

This is a discussion on simple assignment operator for a calender, and source code ques! within the C++ Programming forums, part of the General Programming Boards category; Hi ppl! Can someone help me write an assignment operator for a c++ code that outputs a calender. I already ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    10

    Question simple assignment operator for a calender, and source code ques!

    Hi ppl!
    Can someone help me write an assignment operator for a c++ code that outputs a calender.
    I already am told that the declaration of it is as follows:

    Calender& operator= (const Calender& rhs);

    How do I define it? I simple have:
    Calender& operator= (const Calender& rhs);
    {
    return (rhs);
    }

    I know that's wrong, and I have to copy parts somehow, but I have no idea how to define it!! Plz help!

    Also, with the calendar source code, how would you output that code if you were to show 3 months along the screen by 4 months down, instead of just the one at a time?

    Thanks!
    Claire

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    As I seem to recall saying before, post your code! How on Earth can anyone help you "copy the parts" if they don't know what "parts" there are?!?!?!

    Your second question as well, depends on how you done whatever you've done so far. It may be easy to write the first line out three times, it may be easier to move the cursor around the screen.

    Info!!!!!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21