void SetString(char s1[], char s2[]){
str1= s1[];
str2= s2[];
}
private:
char str1[20];
char str2[20];
What's wrong in that code please some one tell me.
Its giving me following error:
stringhandler.cpp: In member function ‘void StringHandler::SetString(char*, char*)’:
stringhandler.cpp:25: error: expected primary-expression before ‘]’ token stringhandler.cpp:26: error: expected primary-expression before ‘]’ token

str1= s1[];That's not valid syntax, what are you trying to do?