I'd like to be able to initialize vectors using variables like this:
int min,max;
scanf("%d %d", &min, &max);
vector<int> day(min, max, max);
But when I try I get an error message saying:
IntelliSense: no instance of constructor "std::vector<_Ty, _Alloc>::vector [with _Ty=int, _Alloc=std::allocator]" matches the argument list argument types are: (int, int, int)
Is there any way to get around this problem? I'm using Visual Studio 2013 if that matters. Thanks!
vector<int> day {min, max, max};
– Kastaneda