Untitled
#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