String strA;
char strB[16];
strA = "ABC";
strB = strA; // get a: cant cast a char[] into a char[16] error
send(s,(char *) &strB,sizeof(strB),0);
String and packets...
In my program (MMO/RPG/RTS/MUD) I need to be able to fill up a string with spaces after the data. I wrote a String class that works but it is varibly lengthed and my packets need a full string...
eg:
If you were MEANT to understand it, we wouldn't have called it 'code'
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement