Hello everybody, I'm studying the C++ programming language and I'm having some problem with my first vector. If i follow the example in the book (programming principles and practice using C++), this is the example :
1 2 3 4 5
vector<int> v = { 5, 7, 9, 4, 6, 8 };
and here what my compiler says : Errore 1 error C2440: 'initializing' : cannot convert from 'initializer-list' to 'Vector<int>' c:\users\pierob\documents\visual studio 2013\projects\learnprogramming\learnprogramming\main.cpp 7 1 learnprogramming