Good afternoon, having this part of code
std::vector <std::string> words;
func_thread1(words);
getting some value pushed back in func
void func_thread1(std::vector <std::string> input)
{input.push_back(some value);}
it doesn’t stick to global variable, it stays empty, any advices?
actually have no idea, new to coding
New contributor
Zerov Denis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1