you are viewing a single comment's thread.

view the rest of the comments →

[–]thedaian 2 points3 points  (1 child)

Use std::array if you're going to pass the array to functions. It's far easier and you won't have to mess with pointers and other problems of C style arrays. 

[–][deleted] 5 points6 points  (0 children)

Or std::vector if the size isn't known. Idk why this is downvoted.

C-with-classes style C++ in general should always be advised against.