Write a copy constructor for "String" class...
I want to create a copy constructor for my String class(no string library)..like this :
String (const String & string1),I want to copy string1 to "String" object in "main" function, ...do I have to examine every character in string1 and copy to String" object in "main" function ? . I don't know how to count length of string1,so what I have to do? Or a overload function like this:
void operator=(const String ©) , how to copy "copy" to "String" object.... Don't use "string" library...
please help me...thanks very much....