I am writing a program in which a print function takes in users' street address(string), city (string) , state (string), zip(int).
What will my return be for this function?

My code snippet is this:

string addressType::print_add(string str, string Cit, string St, int Z)
{
	cout<<str<<endl;
	cout<< Cit <<","<<St<<endl;
	cout<<"Zip: "<<Z<<endl;

	return ;//what should I return here?

}

Thanks.

why should it return anything? just make the function void.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.