Avoid complex class interfaces? That is pure nonsense.
Just remember that such stuff is error prone and there are easier ways to do it in C++.
Ah, and delete [] doesn't exist in C99. This is C++,...
Type: Posts; User: Elysia
Avoid complex class interfaces? That is pure nonsense.
Just remember that such stuff is error prone and there are easier ways to do it in C++.
Ah, and delete [] doesn't exist in C99. This is C++,...
Which is the point. You don't have to do it yourself. It's easier, safer and faster.
Or just std::vector. Or boost::multi_array.
This is the C++ board. Make the doubles const and ints. Arrays must be a fixed size.
And VS doesn't support C99.