Thread: Help on modifying strings! Please. : - )

  1. #1
    Unregistered
    Guest

    Question Help on modifying strings! Please. : - )

    Ok, here I am. I am goin through this Teach Yourself Visual C++ book (for the second time) and I decided I'm going to go further with one of the lessons, a socket application. I want to make it an FTP/IRC application. It connects wonderfully. Heres the problem, I need to be able to recognize commands sent back and forth, but I dont have a clue how to modify strings, for instance, if I want to add m_strMessage to the end of m_strNick. How do I do that? Or determine if /nick is at the beginning of a message. I'm not asking anyone to write a book for me here on the message board, but I would appreciate a point in the right direction (web link, etc..) Thanks.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Start with the std libs

    Compare string = strcmp()
    Find 1 string in another = strstr()
    Join strings = strcat()


    Your compiler will most likely offer Unicode safer version sof these too.....look at the documentation

  3. #3
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62
    so you can make a working irc prog but you cant manage strings? wow im impressed. no really i am

  4. #4
    Unregistered
    Guest

    Talking

    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Passing strings to functions and modifying them
    By diddy02 in forum C Programming
    Replies: 6
    Last Post: 08-11-2008, 01:07 AM
  2. Strings Program
    By limergal in forum C++ Programming
    Replies: 4
    Last Post: 12-02-2006, 03:24 PM
  3. Programming using strings
    By jlu0418 in forum C++ Programming
    Replies: 5
    Last Post: 11-26-2006, 08:07 PM
  4. Reading strings input by the user...
    By Cmuppet in forum C Programming
    Replies: 13
    Last Post: 07-21-2004, 06:37 AM
  5. modifying strings
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-13-2001, 12:36 PM