Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Warning.-Array subscript is above array bonds
Daniel Acosta last edited by
mat.push_back((valoresA*valoresA*cos(angulosTeta)*cos(angulosTeta))+(valoresA*cos(angulosAlfa)*cos(angulosAlfa)*cos(angulosAlfa))-(valoresA*cos(angulosAlfa)*sin(angulosAlfa)*sin(angulosAlfa))), my program crashes after a few intents, I'm using the UI and calling this function from mainwindow.cpp, i have no errors, only this warning, it's a value stored in a vector<double> mat;
I have seen this if i use old c arrays and
use them as parameter where i pass as pointer to first element.
Its impossible to guess from the code snippet as it could be
any of the valoresA, angulosTeta etc.
You could split all the array access into variables, as it should show what
line warning comes at.
There is no other info in the warning ?