摘要: 整型数组 1 #include 2 3 void fullArray(int depth,int array[],int lenth) 4 { 5 if(lenth=lenth) 7 { 8 int *p=array-depth; 9 for(int i=0;i 2 3 void fullArray(char *array,int lenth) 4 { 5 if(lenth<=0) return; 6 7 if(!*array) 8 { 9 printf("%s\n",ar... 阅读全文
posted @ 2014-02-27 22:04 随心随想 阅读(1345) 评论(0) 推荐(0) 编辑
摘要: 1、初始化和赋值进行的转换:1 float one=1;//整型转浮点型2 3 int guess(2.333);//double转int4 5 int debt=7.2e12;//flot转int ,但是无法储存过大数据;2、以{}方式初始化时进行转换1 //条件:不允许转换最大范围还大大的数据,比如float就不能转换到int,但是int在小于256的时候还是可以转换成char,而且初始化转换的数据必须是常量2 char c={66};3 const c1=66;4 char c={c1};3、表达式中的转换1 short one=1;2 short two=2;3 short three 阅读全文
posted @ 2014-02-27 21:12 随心随想 阅读(662) 评论(0) 推荐(0) 编辑