be considerate, this is my first post; first foray into C++!
This is the exact frame where I used the code from this video: https://youtu.be/Cq1h1KPoGBU?t=340
this is what I wrote down:
vector<int> myVector;
myVector.push_back(3);
std::cout << " Vector: ";
for (unsigned int i = 0; i < myVector.size(); i++);
{std::cout << myVector[i] << " "; }
//(this "[i]" claims to be undefined by C++)//
std::cout << "enter variables" << endl;
C++ says that "i" is undefined at the italicized line (where I have an arrow pointed at the concerned line)
Yes, I included Please help!
Aucun commentaire:
Enregistrer un commentaire