Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctype.h>
- using namespace std;
- int main (){
- string f;
- int i=0; //recorrer la cedena de texto
- cout << "ingresa el for";
- cin >> f;
- while (nombre[i]){
- if(isalpha(f)[i]))
- cout << "el caracter"<< f[i] << "" es una letra ";
- else
- cout << "el caracter"<< f[i] << " no es una letra ";
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement