| Reciever80 (7) | |||||
|
Hey everyone, I'm currently trying to re-create the String Class for, well, class, and I'm running into a few issues. My plan was to edit the strings as c strings, so I could use their array functionality to add/remove or access certain parts. The functions my professor wrote as templates are calling Strings, and so far I haven't been able to convert them to C-Strings as I would like to. Here's an example of a function I'm trying to make:
If it's in fact impossible to do this conversions (I'd like to go both ways with the conversions, since I have to take in and return Strings), if you (guys) could show me how to alter with sections of strings a different way I'd appreciate that help. If you need the full code (it's around 300 lines, including the header file), let me know and I'll PM it to you so this OP doesn't get really long, unless there's an attachment system on here I haven't noticed yet. Many thanks! EDIT: After many hours, and a few phone calls, here are the lines that work:
| |||||
|
Last edited on
|
|||||