自制string类(支持宽字符)
说明:写此代码无其它用途,纯粹为了练练手,写了一点,觉得有必要拿来分享。
运用泛型的思想编写,若代码哪有地方你觉得不爽,请不吝指出。
string class referencs :http://www.cplusplus.com/reference/string/string/
欢迎学习交流!转载不忘注明出处(http://blog.csdn.net/zhanxinhang)^_^
头文件 my_string.hpp
//vs环境下的测试
结果如下:
//g++环境下的测试
结果如下:
======= welcome to my HomePage(http://blog.csdn.net/zhanxinhang) to have a communication =======