Many thanks VictorN and 2kaud for your replies. It does work now.

Well to be honest the reason why I wanted to use my own string class was to see if I could eliminate conversion issues when compiling. I have very little knowledge of iostream or making my own string class for that matter.

I will implement the methods that was going to use the vmString class and use std::string, and see what issues occur.

Thanks again, your help is appreciated.