Bad Boy JH
2011-08-13 01:26:23
I have a uni assignment in C++ which requires me to have a constructor with this method signature:
it needs to go into a linklist, and so I need to know the size of it. I have no idea how to do it, sizeof() only works in the function the integer was defined in, so I can't use that, so I thought maybe one of you guys could help me.
Train(int arr[]);it needs to go into a linklist, and so I need to know the size of it. I have no idea how to do it, sizeof() only works in the function the integer was defined in, so I can't use that, so I thought maybe one of you guys could help me.