Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Brianw79

  1. Brianw79

    Question About Delete Operator

    Wow, you guys work quick. Thank you for the explanations, they really helped!
  2. Brianw79

    Simple Pointer Question

    Just to elborate on IonFilipski's post, that is correct there is no difference in the 2 because white space doesn't matter in C/C++ (with a few exceptions). You could also write the following: char* string[64]; char * string[64];
  3. Brianw79

    Question About Delete Operator

    My question is about a block of code I saw in particular C++ book. The following is the code: string& string::operator = (const string& Str) { char* temp = new char[Str.m_Length]; m_Length = Str.m_Length; memcpy(temp,Str.m_Data,m_Length); delete [ ] m_Data; m_Data = temp...

Part and Inventory Search

Back
Top