Răspuns:
if (strchr("0123456789", s)
cout << "Corect";
else cout << "Incorect";
strchr verifica daca exista caracterul din ghilimele( in cazul asta un șir), în șirul s
Show life that you have a thousand reasons to smile
© Copyright 2024 DOKU.TIPS - All rights reserved.
Răspuns:
if (strchr("0123456789", s)
cout << "Corect";
else cout << "Incorect";
strchr verifica daca exista caracterul din ghilimele( in cazul asta un șir), în șirul s