Quantcast
Channel: User Marco A. - Stack Overflow
Viewing all articles
Browse latest Browse all 45

Comment by Marco A. on How can I assign an array to a fixed matrix index?

$
0
0
@markzzz you're assigning the same row multiple times. Either assign to the elements of the matrix directly (as in here) or dynamically allocate the rows (e.g. with new[]) for the matrix before populating it. Seriously though, give std::vector or std::array a try unless this is only for didactic purposes.

Viewing all articles
Browse latest Browse all 45

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>