By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,165 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,165 IT Pros & Developers. It's quick & easy.

operator<<

P: n/a
hi
I am confused while writing member functions
I have declared them as public members of the class
class BitArray{
public:
BitArray& operator <<(int); //overloaded left shift operator
BitArray& operator>>(int); //overloaded right shift operator

I have declared private data members as:
private:
unsigned char* bitarray;
int size;

If you give me a hand while writing this functions I will be so
glad.Thanks for all.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
tsunami wrote:
I am confused while writing member functions
I have declared them as public members of the class
class BitArray{
public:
BitArray& operator <<(int); //overloaded left shift operator
BitArray& operator>>(int); //overloaded right shift operator

I have declared private data members as:
private:
unsigned char* bitarray;
int size;

If you give me a hand while writing this functions I will be so
glad.Thanks for all.


What is the requirement set for these functions? IOW, what are they
supposed to do? I really don't want to make up my own spec when you
undoubtedly have one ready.

V
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.