Array length in C++?

Associate
Joined
22 Sep 2009
Posts
2,085
Location
Leicester
Not something I've ever had to do before (shockingly), maybe I'm just being dim but shouldn't:

Code:
void c_maze::blankCellsList(s_blanks *list)
{
	int listSize = sizeof(list) / sizeof(s_blanks);
Work?
 
Last edited:
I was just trying to avoid vectors to keep the library portable to C, but when I think about it C has very limited use these days anyway. Vectors it is!
 
Back
Top Bottom