standard String operations

This is a discussion on standard String operations within the C++ Programming forums, part of the General Programming Boards category; I am a student as you people can make out... Now, i have a question in my assignment as Design ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    36

    standard String operations

    I am a student as you people can make out... Now, i have a question in my assignment as


    Design interface and implement it in C++ to adequately give functionality of a String class. Get more ideas on this class from standard String operations available in any product such as Excel etc.

    Anyone can throw light on it on what i have to do with this ?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,622
    Your teacher is probably telling you to think of things like inserting/deleting characters to/from a string, searching for a substring within a string, counting the number of times a substring occurs in a string, giving a word count, that sort of thing.

    You might first write a basic string class with member functions that allow you to manipulate the string data, then extend it with non-member non-friend functions to have more complex operations.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    36
    hmmm

    Pretty Tricky... :-)

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,346
    I'd first work on getting your Customer class working with a member function. This is basically like that, only much more complicated.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 04-25-2008, 02:45 PM
  2. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 01:02 AM
  3. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 02:23 PM
  4. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 01:45 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM

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