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!

C++ debug help needed! I'm trying to convert the string to char

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!