C
Chinmoy Mukherjee
Hi All,
If I have a function
std::string f() {
std::string tmpString = "Error"
return tmpString
}
main() {
std::string returnString = f();
cout << returnString << endl; //Will the output be Error , or blank?
how do I circumvent the problem
}
Regards,
Chinmoy
If I have a function
std::string f() {
std::string tmpString = "Error"
return tmpString
}
main() {
std::string returnString = f();
cout << returnString << endl; //Will the output be Error , or blank?
how do I circumvent the problem
}
Regards,
Chinmoy