Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started