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

Funkcija iswlower () programmā C ++ pārbauda, ​​vai dotais platais raksturs ir mazais burts vai nav.

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

iswlower () prototips

 int iswlower (wint_t ch);

Funkcija iswlower () pārbauda, ​​vai ch ir mazais burts, ti, viens no šiem

 a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z.

iswlower () parametri

  • ch: Plašais raksturs, kas jāpārbauda.

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

  • Funkcija iswlower () atgriež vērtību, kas nav nulle, ja ch ir mazais burts.
  • Tas atgriež nulli, ja ch nav mazais burts.

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

 #include #include #include using namespace std; int main() ( setlocale(LC_ALL, "en_US.UTF-8"); wchar_t ch1 = L'u03a0'; wchar_t ch2 = L'u03c0'; wcout << L"islower(" << ch1 << ") returned " << boolalpha << (bool)iswlower(ch1) << endl; wcout << L"islower(" << ch2 << ") returned " << boolalpha << (bool)iswlower(ch2) << endl; return 0; )

Palaidot programmu, izeja būs:

 islower (Π) atgriezta nepatiesa islower (π) atgriezta taisnība

Interesanti raksti...