Skip to content

Instantly share code, notes, and snippets.

@alex85k
Last active August 29, 2015 14:19
Show Gist options
  • Save alex85k/68ef035f5aa47ba041a5 to your computer and use it in GitHub Desktop.
Save alex85k/68ef035f5aa47ba041a5 to your computer and use it in GitHub Desktop.
STL Lab plan
  1. Класс для экспериментов
class Demo {
public:
  void testVector();
}

int main(int argc, char**argv) {
    Demo d;
    d.testVector();
}
  1. Создадим std::vector<int> vec
  2. vec.push_back(...) - добавить в конец
  3. Печать информации: вынесем в отдельную функцию void printVecInfo(std::vector<int> &v) (почему & ? ) - a - b - c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment