Apr 3, 2016 at 10:14pm Apr 3, 2016 at 10:14pm UTC
What do you mean doesn't work? Does the function not return the same value that is printed?
Apr 3, 2016 at 10:14pm Apr 3, 2016 at 10:14pm UTC
it doesnt return anything at all. just a blank space
Apr 3, 2016 at 10:20pm Apr 3, 2016 at 10:20pm UTC
That's impossible. It's returning an int, which will be 4 (or eight) bytes in size, and that memory will contain some value because it's impossible for it to not contain some value.
So what makes you think it's somehow a blank space?
Apr 3, 2016 at 10:23pm Apr 3, 2016 at 10:23pm UTC
Note that return doesn't automatically print the value. To print the value you need to do it explicitly.
cout << yourList.GetLength();
Last edited on Apr 3, 2016 at 10:24pm Apr 3, 2016 at 10:24pm UTC
Apr 3, 2016 at 10:29pm Apr 3, 2016 at 10:29pm UTC
@peter
jesus christ. i can't believe i forgot that. im so focused on this thing i forgot the basics. so bad. thanks. DX