Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The construction cout << блабла
works with elementary types, the array is not.
Display the contents of the array in a loop.
With this lib:
fmt::print("Total: [{}]\n", fmt::join(total_1.begin(), total_1.end(), ", "));
//=> Total: [1, 2, 3]
Maybe someone else will go over to the printf-style side :]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question