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++