Untitled
unknown
c_cpp
2 years ago
510 B
6
Indexable
#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;
}Editor is loading...
Leave a Comment