teststring.cpp 265 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <string.h> #include <iostream> using namespace std; #include "mystring.h" int main() { mystring a("ala"); mystring b=a; b[0]='c'; cout << b << endl; mystring c=a+b; c+="ola"; cout << c+"ula"<<endl; mystring d; cout << strlen(d)<<endl; }