摘要:
#include<stdio.h>#include<string.h>int lookup_keyword(const char *const desired_word,const char *keyword_table[],int const size){ const char **kwp; for(kwp=keyword_table; kwp<keyword_table+size; kwp++) if(strcmp(desired_word,*kwp)==0) return(kwp-keyword_table); return -1;}int main(voi 阅读全文
posted @ 2011-09-27 22:04 光铭 阅读(167) 评论(0) 推荐(0) 编辑