Hi everyone, I new to C++ and seeking for some advice from c++ experts here. I got the following error. I don't know how to fix it. Hoping someone here can assist me. Thank you for the help.
Debug assertion failed!
Expression: vector subscript out of range.
I have data from text file (2 columns, 10 rows) as below:
44 245.073
56 206.798
100 222.541
70 206.798
65 206.879
85 219.329
96 184.308
57 202.072
37 206.798
14 206.95
I need to read the data from text file and I need to store each column into vector. First column refer to startNode and second column is objFunction.
You haven't given either startNode or objFunction any size ... so their sizes will default to zero. Consequently startNode[i] and objFunction[i] are wrong.