Search:

Type: Posts; User: Elysia

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    10,073

    I can confirm that I did refer to the vector.

    I can confirm that I did refer to the vector.
  2. Replies
    7
    Views
    10,073

    auto & vec = x["mumb 5"]; // Get vector...

    auto & vec = x["mumb 5"]; // Get vector
    vec.resize(8); // Resize to make index 7 valid
    vec.at(7) = 65; // Fill element

    Best is to use push_back. Avoid index operator since it can cause undefined...
Results 1 to 2 of 2