Hi there, I'm new to this forum and pretty new to c++ as well and I can't seem to get this error figured out. Here is the full error message:
C2784: 'std::basic_istream<_Elem,_Traits> &std::operator >>(std::basic_istream<_Elem,_Traits> &&,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_istream<_Elem,_Traits> &&' from 'std::ostream'
cout << "Please fill in the following information to output the Total room charges, and an invouce for the guest: " << endl << endl;
cout << "Customer Name: ";
getline(cin, name);
cout << "Room Number: ";
cin >> roomnum;
cout << "Number of Days Stayed: ";
cin >> numofdays;
cout << "Extra Charges: ";
cin >> extracharge;
Hm, well that's really weird because it's still giving me issues. I think I'll start a new project in Visual Studio and re-enter the code. Thanks for your input.
I'll post my results here after trying a new project.
Moschops you may be right. I made a new project and just pasted the same code in, and it built successfully. No idea how or why, but it's fine now. Thanks for all of the help :)
I didn't think I had any errors in my code >.> <.<