77 895
Assignments Done
Successfully Done
In August 2019

Answer to Question #47372 in C++ for Eunsu Kim

Question #47372
#include "std_lib_facilities_4.h"

int main()
vector<int> v = { 5, 7, 9, 4, 6, 8 };
for (int x:v)
cout << x << '\n';

when i compile this, i got these two error "Error 1 error C2440: 'initializing' : cannot convert from 'initializer-list' to 'Vector<std::string>'
2 IntelliSense: no instance of constructor "Vector<T>::Vector [with T=int]" matches the argument list
argument types are: (int, int, int, int, int, int)

what is wrong?
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions