Thread: operators overloading

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    1

    operators overloading

    DEAR FRIENDS

    I HAVE PROBLEM IN OPERATORS OVERLOADING
    HELP ME IN THIS MATTER
    TASK IS TO IMPLEMENT THE STRING CLASS WHICH IS CAPABLE OF HANDLING STRINGS.

    OVERLOAD OPERATORS :

    += (CONCATINATION)
    == (test string1 == string2)
    = (string copy)
    < (test string1 < string2)
    > (test string1>string2)
    ! (test string empty)
    >=(test string1 >= string2)
    <= (test string1 <=string2)
    != (test string1!= string2)


    your class should have only an
    int length;
    char *sptr;
    as a private data member.

    also write at least one utility function to make your concept clear them.


    I NEED THE CODE OF THIS PROGRAM TODAY SO PLEASE HELP ME PROGRAM
    THANKYOU

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    We don't do your homework. We aren't working for lazy people. If you have a specific problem with this task, ask a specific programming related question. If your only problem is you are too lazy for an assignment, that's not our problem but your's.

    Go back to the C++ Board and look at the top. There's a thread reading "READ FIRST...".

    What part of


    Attention to all....

    The purpose of these board is not for other to do your homework for you! Try things out work on your own, homework has a purpose. If you still have trouble with a specific thing or whatever please feel free to ask. But please DO NOT ask people to do your entire homework for you, it simply annoys people most of the time.


    was so hard to understand ?

    Try to do the assignment on your own. If you get stuck, come back, post your code and ask a specific question.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Overloading operators
    By ugmusicbiz in forum C++ Programming
    Replies: 2
    Last Post: 02-13-2009, 01:41 PM
  2. question about overloading operators
    By *DEAD* in forum C++ Programming
    Replies: 9
    Last Post: 05-08-2008, 10:27 AM
  3. Replies: 16
    Last Post: 10-27-2007, 12:42 PM
  4. Overloading fstream's << and >> operators
    By VirtualAce in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2007, 03:17 AM
  5. Overloading operators...
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 11-21-2001, 08:24 PM