class MYCLASS
{
private:
char Number[100];
public:
friend ostream& operator<<(ostream&, MYCLASS&);
friend istream& operator>>(istream&, MYCLASS&);
. . .
MYCLASS& operator=(char* No); // <-- This is important for below question
. . .
};
My "operator<<" and "operator>>" work correctly for cin and cout.
I want to know, can I do something that take 'No' to buffer (with some classes like istream and ostream or something else) and then bring that to cin buffer?
I mean can I do something that without inputting any character from keyboard, put 'No' in cin buffer and use operator>>(istream&, MYCLASS&) function for putting it in MYCLASS object?