Advertisement
urksiful

Automata For

Apr 6th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctype.h>
  3.  
  4. using namespace std;
  5.  
  6. int main (){
  7.  
  8. string f;
  9.  
  10.     int i=0; //recorrer la cedena de texto
  11.  
  12. cout << "ingresa el for";
  13. cin >> f;
  14. while (nombre[i]){
  15.  
  16. if(isalpha(f)[i]))
  17.  
  18. cout << "el caracter"<< f[i] <<  "" es una letra ";
  19.  
  20. else
  21. cout << "el caracter"<< f[i] <<  " no  es una letra ";
  22.  
  23. i++;
  24.  
  25. }
  26.  
  27. return 0;
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement