Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. bool Grandchildren::x_InitializeGrandchildrenNames2DArray(int numberOfParents, int* numberOfChildren)
  2. {
  3. m_GrandchildrenNames2DArray = new string*[numberOfParents];
  4. if (!m_GrandchildrenNames2DArray)
  5. {
  6. return false;
  7. }
  8. for( int i=0; i<numberOfParents; i++)
  9. {
  10. m_GrandchildrenNames2DArray[i] = new string[numberOfChildren[i]];
  11. if(!m_GrandchildrenNames2DArray)
  12. {
  13. return false;
  14. }
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement