
Patrick B. answered 09/28/19
Math and computer tutor/teacher
One way is to #include <stdio.h> and use sprintf
=================================================
using namespace std;
#include <stdio.h>
#include <string.h>
#include <iostream>
int main()
{
char str[5];
strcpy(str,"John");
int x=21;
char outbuff[255];
sprintf(outbuff,"%s%d",str,x);
cout << outbuff << endl;
}