Qo'yilgan masala


Download 1.26 Mb.
bet5/5
Sana19.06.2023
Hajmi1.26 Mb.
#1621170
1   2   3   4   5
Bog'liq
MTA 4

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.

Do'stlaringiz bilan baham:
1   2   3   4   5




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling