how to put a number into a function and get a new number back in c++ code example Example: adding element in vector c++ vector_name.push_back(element_to_be_added);