Код: Выделить всё
#include
#include
#include
using namespace std;
string f1(vector v) {
return "this takes in a vector\n";
}
string f2(int x[]) {
return "this takes in an array\n";
}
int main() {
vector vec = {1, 2, 3};
string x = f1(vec);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79337047/debugger-fails-to-show-return-value-of-function-taking-vector-in-c[/url]
Мобильная версия