Add a fname
parameter of type string
to myFunction
.
void myFunction(@(6) @(5)) {
cout << fname << " Doe";
}
int main() {
myFunction("John");
return 0;
}
void myFunction(string fname) {
cout << fname << " Doe";
}
int main() {
myFunction("John");
return 0;
}