An error occurs when I try to do this.
friend std::ostream& operator<<(std::ostream& os, const hand& obj) { return obj.show(os, obj); }
where hand is the class I created and show
std::ostream& hand::show(std::ostream& os, const hand& obj) { return os<<obj.display[0]<<obj.display[1]<<obj.display[2]<<obj.display[3]<<obj.display[4]; }
where the display is declared as char display[6] .
Does anyone know what error means?
user98188
source share