New course! Every coder should learn Generative AI!
Try a free lesson+ 31
Implementation of Code Coach Challenge "Cheer Creator" in C++
Works fine in C https://code.sololearn.com/cbeZT0baz7SH/?ref=app But not passing 2 test cases in C++ 😣 Why? https://code.sololearn.com/c9KLzpfvSz7D/?ref=app
2 Answers
+ 20
Sʀ. Sᴏғᴛᴡᴀʀᴇ Eɴɢɪɴᴇᴇʀ Thank you Sir !
It worked 😊
+ 9
You can simply write in loop like this. No need to concat
cout << "Ra!";
I think this is happening because you defined size of char array 100 so maybe some special character adding in your output while concatinng. I don't know much about c++ so I maybe wrong here.