Last edited on
Well, for starters include the required C++ library headers. <iostream> and <string> seem to be in order.
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
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
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.
salaman125 strikes again deleting his original post.
Topic archived. No new replies allowed.