I have used #include<string.h> and then declared String str1, str2; and have not been able to use cin>>str1; after prompting for input.