Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- void main(){
- string stroka;
- cout <<"vvedi stroku\n";
- getline(cin, stroka);
- int dlina = stroka.length;
- if(dlina[0] >=1 && dlina[0] <=127 && dlina[0] && stroka[0]>='a' && stroka[0]<='z' || stroka[0]>='A' && stroka[0]<='Z')
- cout <<stroka <<endl;
- else
- cout << "stroka ne udovletvoryaet usloviaym";
- system("pause");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement