The basics - C++ notes

PHOTO EMBED

Sun Aug 18 2024 10:43:59 GMT+0000 (Coordinated Universal Time)

Saved by @ssjuniverse

#include <iostream>
#include <vector>

int main() {
    std::vector<int> V = {1, 5, 4, 33, 0};

    // Display number of values stored in V
    std::cout << "V has " << std::ssize(V) << " elements.\n";
}
content_copyCOPY

https://www.itn.liu.se/~aidvi05/cplusplus/my-docs/Vectors/basics.html