I'm having a compile error, my project is to make a soda machine, complete with 5 dispensers and give change and all that
i was wondering if anyone could help me decipher the error, im completely lost about it
the line in question is
[cout << x << ". " << soda_machine->dispenser[x] << endl;]
x is an int defined in a for loop
78 C:\Users\Owner\Documents\My Received Files\212.01.cpp
[no match for 'operator<<' in 'std::operator<< [with _Traits = std::char_traits<char>](((std::basic_ostream<char, std::char_traits<char> >&)(+(&std::cout)->std::basic_ostream<_CharT, _Traits>::operator<< [with _CharT = char, _Traits = std::char_traits<char>](x))), ((const char*)". ")) << soda_machine->SodaMachine::dispenser[x]' ]
if you need more info about the project, just lemme know
thanks