i have a problem when i read c++ primer ,i don't know what the follow
codes meaing.
char *word[]={"frank","engl ish","edali","s lina"};
size_t word_size=sizeo f(word)/sizeof(char*);
list<stringword 2(word,word+wor d_size);
and then what's the contents of list? why the word_size=sizeo f(word)/
sizeof(char*)?
i really appreciate your help.
codes meaing.
char *word[]={"frank","engl ish","edali","s lina"};
size_t word_size=sizeo f(word)/sizeof(char*);
list<stringword 2(word,word+wor d_size);
and then what's the contents of list? why the word_size=sizeo f(word)/
sizeof(char*)?
i really appreciate your help.
Comment