Advertisement
Nikitka_36

Stroki 14

Mar 17th, 2014
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. void main(){
  7. string stroka;
  8. cout <<"vvedi stroku\n";
  9.  
  10. getline(cin, stroka);
  11. int dlina = stroka.length;
  12.  
  13.     if(dlina[0] >=1 && dlina[0] <=127 && dlina[0] && stroka[0]>='a' && stroka[0]<='z' || stroka[0]>='A' && stroka[0]<='Z')
  14.         cout <<stroka <<endl;
  15.     else
  16.         cout << "stroka ne udovletvoryaet usloviaym";
  17.  
  18. system("pause");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement