overloading operator<<

From: tsunami (tufang_at_gmail.com)
Date: 03/27/05


Date: 27 Mar 2005 08:04:28 -0800

hi
I am confused while writing
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.



Relevant Pages

  • Re: "EXT3-fs error" after resume from s2ram
    ... INT A disabled ... writing 0xe2000008) ... connection state: disconnected -> associated ... setting latency timer to 64 ...
    (Linux-Kernel)
  • Re: Rookie Student C++ Array question (reading from a file)
    ... >Start by writing down in plain english words what needs to be done. ... >int main ... >That's your overall plan. ... at the previous suggestion of mapping, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Rookie Student C++ Array question (reading from a file)
    ... >Start by writing down in plain english words what needs to be done. ... >int main ... >That's your overall plan. ... >do the additions inline in your real source code) ...
    (alt.comp.lang.learn.c-cpp)
  • Re: read and write columns
    ... You attempt to open the same file, "data", for writing and reading, ... Read the documentation for fscanf. ... int main ...
    (comp.lang.c)
  • Re: Inheritable Static methods
    ... the former encapsulates the conversion into the int type. ... writing "typeof.FullName" might not look quite as nice as "someClass.FullName". ... you've got a perfectly good alternative syntax that does _exactly_ the same thing. ...
    (microsoft.public.dotnet.languages.csharp)