How can I use overloaded >> operator to get multiple different type of inputs from 5 user and assign them to the class members? Also i need to print them all using overloaded << operator so how do i do that?
-
Does this answer your question? C++ Input Operator Overloadinguser14215102– user142151022021-11-18 09:34:43 +00:00Commented Nov 18, 2021 at 9:34
-
This may also help en.cppreference.com/w/cpp/language/operatorsanastaciu– anastaciu2021-11-18 09:37:27 +00:00Commented Nov 18, 2021 at 9:37
-
2Maybe you should edit and show an simple example.Jabberwocky– Jabberwocky2021-11-18 09:48:16 +00:00Commented Nov 18, 2021 at 9:48
Add a comment
|