C ++ tornis () - C ++ standarta bibliotēka

Funkcija towlower () C ++ formātā pārveido noteiktu plato rakstzīmi mazajiem burtiem.

Funkcija towlower () ir definēta galvenes failā.

towlower () prototips

 ziemas_tornis (wint_t ch);

Funkcija towlower () pārveido ch par mazo versiju, ja tāda pastāv. Ja plaša rakstura mazo versiju nav, tā paliek nemodificēta.

Lielie burti no A līdz Z tiek attiecīgi pārveidoti par mazajiem burtiem no a līdz z.

towlower () parametri

  • ch: Plašais raksturs, ko pārveidot

towlower () Atgriešanās vērtība

  • Funkcija towlower () atgriež ch mazo burtu versiju, ja tāda pastāv. Pretējā gadījumā tas atgriež ch.

Piemērs: Kā darbojas towlower () funkcija?

 #include #include #include #include using namespace std; int main() ( setlocale(LC_ALL, "en_US.UTF-8"); wchar_t str() = L"Ĵōhn Deńvėr"; wcout << L"The lowercase version of "" << str << L" " is "; for (int i=0; i 

When you run the program, the output will be:

 The lowercase version of "Ĵōhn Deńvėr" is ĵōhn deńvėr

Interesanti raksti...