I am trying to add data to a pre-existing char array from an int or string. Code is as follows
int num1 = 10;
int num2 = 5;
string temp = "Client";
char buf[64] = "This is a message for: " + temp + num1 + " " + temp + num 2;
I appear to get conversion data errors here. I am not too sure on how to convert it correctly to the right data type. I need them to be stored into the char array as this array will then be used with sendto() function for UDP sockets and it is just not simply printing it out to the console/debug window
Edit: Language is c++