error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'Oper')
Task is to load complex number from a file. When code was written without classes, using stuctures and specified functions only it didn’t show that error. Functions (>> overlading) were completely the same. Class #ifndef WYRAZENIE_ZESPOLONE_HH #define WYRAZENIE_ZESPOLONE_HH #include "liczbaZespolona.hh" enum Oper {op_plus, op_minus, op_razy, op_dziel}; class WyrazenieZespolone { private: LiczbaZespolona lz1; LiczbaZespolona lz2; Oper… Read More error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'Oper')