I'm trying to figure out how to add a random digit and random number to a string I created. I know how to get both, and can get both, but when it comes to attaching it, I'm screwed. I've tried strcat and strncat and neither are working for me. What am I doing wrong?????
Code:ran1 = (rand()%q) + s; cout << endl << ran1 << " %%%%%%"; cout << endl << num[ran1] << " ^^^^^"; ran2 = (rand()%q1) + s; cout << endl << ran2 << " $#$#$#$"; cout << endl << alpha[ran2] << " +_+_+_+_+";