That's basically what I want to do and it compiles just fine but if you try to run it it freaks out. "Debug Assertion Failed!". So why doesn't this work and how can I work around it? Thanks.
Sorry, you're right. I got it working using [] as long as the string was initialized at the value in the brackets, but I'm having trouble understanding how to use .at() for values that haven't been initialized
at(i) will insert data at the position, i, in the string but you still have to allocate memory to it. The at() command won't do that for you automatically.