HelloWorld

ASM,C,LUA,LINUX(gentoo)
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月27日

摘要: #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) 编辑

摘要: 1.多维数组的初始化中,除过第一维外其他维的大小都必须显式的给出 int a[][3]={ {3,1}, {4,5,6}, }; 阅读全文

posted @ 2011-09-27 20:57 光铭 阅读(99) 评论(0) 推荐(0) 编辑

摘要: " When started as "evim", evim.vim will already have done these settings.if v:progname =~? "evim" finishendif"禁止显示滚动条set guioptions-=lset guioptions-=Lset guioptions-=rset guioptions-=R"encondingset encoding=utf-8set fileencoding=chineseset fileencodings=ucs-bom,ut 阅读全文

posted @ 2011-09-27 20:06 光铭 阅读(822) 评论(0) 推荐(0) 编辑

摘要: #include<stdio.h>#define SIZE 5; void print1(int *a){ int i; for(i=0; i < SIZE; i++) //expected expression before ';' token printf("%d\n",a[i]);}void print2(int a[]){ int i; for(i=0;i < SIZE;i++) //expected expression before ';' token printf("%d... 阅读全文

posted @ 2011-09-27 19:56 光铭 阅读(356) 评论(0) 推荐(0) 编辑