Qo'yilgan masala




Download 1.26 Mb.
bet5/5
Sana22.02.2023
Hajmi1.26 Mb.
#43126
1   2   3   4   5
Bog'liq
MTA 4
20-25lab
if (ch != ' ')
t = t + ch;
else
{
cout << (char)toupper(t[0]) << ". ";
t = "";
}
}


string temp = "";


for (int j = 0; j < t.length(); j++)
{
if (j == 0) temp = temp + (char)toupper(t[0]);


else
temp = temp + (char)tolower(t[j]);
}


cout << temp << endl;
}
int main()
{
string str = "Mamajonov Toxirjon";
printInitials(str);
}

Download 1.26 Mb.
1   2   3   4   5




Download 1.26 Mb.