Question: C++ debug help needed! I'm trying to convert the string to char first, then reuse the char array once it loops to the end. For
C++ debug help needed!

I'm trying to convert the string to char first, then reuse the char array once it loops to the end. For an example, the string array has {"abc") then I convert it to char array{'a','b','c'}, if I loop it 10 time, it should output abcabcabca.
void printmessage (const string&password) string p = password ; char *x - p.c str); ng 'const char *" to 'char *" discards const qualifier if(i--5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
