#include<iostream>
#include<string.h>
using namespace std;
void fab(const char **words){
for(int i=0; i < 4; i++){
// cout<<strlen(*(words + i))<<endl;
for(int j = 0; j < strlen(*(words + i)); j++){
cout<<*(*(words + i) + j)<<" ";
}
cout<<endl;
}
}
int main(){
const char *words[10] = {"apple", "banana", "orange", "red"};
fab(words);
}
网友评论