Torion J.

asked • 12/08/21

Can I return a string?

#include <Windows.h>

#include <iostream>

#include <string>

using namespace std;





int main()

{

string func1();

{

string response;


cout << "Hello World!" << endl;

getline(cin, response);


return response;

}





return 0;

}

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.