Dear i am very new in C++ and i am bit confuse also. i want to work on strings while searching about the functions of strings i found strcat strcopy strncat etc but every functions work with char *str not for strings for example when i wrtie
but if i declare
char *str1,*str2;
cin.getline(str1,256);
cin.getline(str2,256);
strcat(str1,str2);
cout<<str1;
this works. i don't want to use char *str as string i want to use string str;
what is the difference between them and what is the difference in codes? can anyone explain please
i am using dev-cpp compiler.
thanks in advance