Copy Constructor Issue C++: “0xC0000005: Access violation writing location 0x00000000.”
问题 I'm having some trouble getting my copy constructor to work in my BigInt class I'm working on. In BigIntVector.cpp in the copy constructor, the lines: for (int i = 0; i < vectorSize; i++) { vectorArray[i] = orig.vectorArray[i]; } causes the exception 0xC0000005: Access violation writing location 0x00000000. Any help figuring out why would be appreciated. Thank you. In BigInt.cpp : // copy constructor BigInt::BigInt(BigInt const& orig) : isPositive(orig.isPositive) , base(orig.base) , skip