CWangChao

深入浅出,厚积薄发,有一技之长才能立足于一席之地!

博客园 首页 新随笔 联系 订阅 管理

#

只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-03-18 16:24 CWangChao 阅读(19) 评论(0) 推荐(0)

2013年1月8日 #

摘要: mark一下,做个证据,准备搬家csdn 阅读全文
posted @ 2013-01-08 15:44 CWangChao 阅读(95) 评论(0) 推荐(0)

2010年7月1日 #

摘要: #include "stdio.h"int function(int a[3][3],int b[3][3],int c[3][3]){int i,j;for(i=0;i<3;i++){for(j=0;i<3;j++){c[i][j]=a[i][0]*b[0][j]+a[i][1]*b[1][j]+a[i][2]*b[2][j];}}return 0;}void main(){int ... 阅读全文
posted @ 2010-07-01 20:43 CWangChao 阅读(283) 评论(1) 推荐(1)

摘要: #include "stdio.h"typedef enum{ENUM_1=1,ENUM_2=2,ENUM_3,ENUM_4}myenum;typedef struct{int a;int b;int c;}mystruct;typedef union{mystruct s;myenum e[3];}myunion;int function(int a,int b){unsigned char *... 阅读全文
posted @ 2010-07-01 20:42 CWangChao 阅读(125) 评论(0) 推荐(0)

摘要: #include "stdio.h"typedef struct{int a;int b;int c;}mystruct;int function(int a,int b){unsigned char *buffer[100];mystruct *strs=(mystruct*)buffer;int i;for(i=0;i<5;i++){strs[i].a=0;strs[i].b=1;str... 阅读全文
posted @ 2010-07-01 20:39 CWangChao 阅读(208) 评论(0) 推荐(0)

摘要: 由汇编分析出c代码 int myfuction(int a,int b){00411A20PUSH EBP00411A21MOV EBP,ESP00411A23SUB ESP,0E8H00411A29PUSH EBX00411A2APUSH ESI00411A2BPUSH EDI00411A2CLEA EDI,[EBP-0E8H]00411A32MOV ECX,3AH00411A37MOV EAX... 阅读全文
posted @ 2010-07-01 20:39 CWangChao 阅读(147) 评论(0) 推荐(0)

摘要: #include "stdio.h"int function(int a,int b){int c=a+b;switch(c){case 0:printf("c>0");case 1:printf("c>10&&c<100");break;default:printf("c>10&&c<100");}return c;}void mai... 阅读全文
posted @ 2010-07-01 20:38 CWangChao 阅读(146) 评论(0) 推荐(0)

摘要: #include "stdio.h"int function(int a,int b){int c=a+b;int i=0;while(i<50){c=c+i;}return c;}void main(){function(1,2);} --- c:\users\wangchao\desktop\test\test\main.cpp -----------------------------... 阅读全文
posted @ 2010-07-01 20:37 CWangChao 阅读(174) 评论(1) 推荐(0)

摘要: #include "stdio.h"int function(int a,int b){int c=a+b;if(c>0&&c<10){printf("c>0");}else if(c>10&&c<100){printf("c>10&&c<100");}else{printf("c>10&&am... 阅读全文
posted @ 2010-07-01 20:37 CWangChao 阅读(141) 评论(0) 推荐(0)

摘要: #include "stdio.h"int function(int a,int b){int c=a+b;int i=0;do{c=c+i;}while(i<50);return c;}void main(){function(1,2);} --- c:\users\wangchao\desktop\test\test\main.cpp --------------------------... 阅读全文
posted @ 2010-07-01 20:36 CWangChao 阅读(136) 评论(1) 推荐(0)