copy constructor

This is a discussion on copy constructor within the C++ Programming forums, part of the General Programming Boards category; is a copy constructor needed?
i have a class, bitstream, which is called this way:
Code:
main() {
bitstream streamer("the");
...

hint: i see u r using pointers..... if inside of one of those (not included) functions you allocate memory dynamically...or simply said you add, or assign one value to another of objects that are on the heap you need to define your own copy constructor, as well as overload (most likely) the assigment operator....

anyway....you should of just posted the code inside of the function that caused the problem....

when I was studying I was told a copy constructor was part of the canonical class form (default constructor, copy constructor, overloaded = operator and a destructor). The reason for this is that people will be able to use the basic operations they might expect. Therefore I would try a copy constuctor and see if it works, they're not too hard to write.