Results 1 to 6 of 6

Thread: std::string error combining *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Posts
    49

    std::string error combining *RESOLVED*

    Ok i've a problem when using this code

    Code:
    #include <iostream>
    #include <string>
    using std::cout;
    using std::string;
    
    int main()
    {
      string recbuffer;
      string endmsg1 = (char)(10);
      string endmsg2 = (char)(13);
      recbuffer += "NICK The_Dragon" + endmsg1 + endmsg2;
      cout << recbuffer;
    }
    it's supposed to display "NICK DBZ_Dragon ASCII(10) ASCII(13) but it ends up giving an erro at string endmsg1... and endmsg2... so what am i doing wrong... im still fairly new to c++
    Last edited by The_Dragon; Feb 25th, 2003 at 06:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width