Matrix Arithmetic using Vectors in C++ causing segmentation faults

后端 未结 7 1197
执笔经年
执笔经年 2021-01-15 02:37

I\'m having some issues passing vectors to functions. My concern is not with my logic itself, as if I need to adjust later I will. My program requirements state that I must

7条回答
  •  北海茫月
    2021-01-15 02:45

    You must use push_back to initialize elements of a vector, or you must size the vectors before using [index]= form.

提交回复
热议问题