Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
510 B
1
Indexable
Never

#include <iostream>
#include <string>
using namespace std;

void Name(const string& f, string& i ,string& o ,string& r) {
	r = f + " " + i + "." + o + ".";
}




int main()
{
	setlocale(LC_ALL, "Russian");

	string f = "Широков";
	string i = "Никита";
	string o = "Алексеевич";
	string it;
	
	Name(f, i, o, it);

	cout << "ФИО: " << f << " " << i << " " << o << endl;

	cout << "Фамилия И.О. - " << f << " Н." << "А." << endl;

	return 0;

}
Leave a Comment