.

Dec 16, 2021 at 2:04am
...
Last edited on Dec 17, 2021 at 12:19am
Dec 16, 2021 at 2:11am
Well, for starters include the required C++ library headers. <iostream> and <string> seem to be in order.
Dec 16, 2021 at 2:18am
Also, what is the specific problem you are facing and that you think needs fixing?

BTW: A "C string" and the C++ class std::string are very different (though somewhat related) things.
Last edited on Dec 16, 2021 at 2:47am
Dec 16, 2021 at 3:45am
27 and 28 are illegal in standard c++. variable length array. again on 54

apart from those, can you tell us in detail what the problem is? Eg "it inserts in the wrong place" or "it crashes" or whatever?

standard string has an insert. Is your homework to mix c++ and C style strings the hard way? Or did you need to see how to do this in c++ without all the weirdness?
Last edited on Dec 16, 2021 at 3:46am
Dec 16, 2021 at 9:33am
what do i need in order to fix my code?


Well first, some info re what the code is supposed to do would be sort of helpful. Then say something about what the problem with the code is, then mention what debugging has been done to try to find the issue in the code - leading to a specific c++ question.
Dec 17, 2021 at 2:11pm
salaman125 strikes again deleting his original post.
Topic archived. No new replies allowed.