C++/C
mxlhj168
平生只有双行泪,半为浮生半美人
展开
-
switch代码分析
switch(type){ case 0: strcpy(btext[1],selType[type]); case 1: strcpy(btext[1],selType[type]); case 2: strcpy(btext[1],selType[type]);} switch(type){原创 2010-05-05 21:42:00 · 734 阅读 · 0 评论 -
常见错误
char btext[2][9];char SelType[2][9];int i; strcpy(SelType[0],"Horizontal Fill");strcpy(SelTpye[1],"Vertical Fill"); for(i=0;i btext[i]=SelType[i]; 上述代码中,最终显示会出现乱码;数组长度不够长固然是原创 2010-05-11 20:11:00 · 469 阅读 · 0 评论