Código
#include <iostream> using namespace std; int main(){ int n; cout<<"Ingrese cantidad de nombre: "; cin>>n; cin.sync(); char nombres [n][25]; for(int k = 0;k<n;k++){ cout<<"Ingrese nombre "<<k+1<<": "; gets(nombres[k]); } cout<<endl; for(int k=0;k<n;k++) cout<<"Palabra longitud "<< k+1 <<": "<< strlen(nombres[k]) <<endl; system("pause"); return 0; }