上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 73 下一页
摘要: 例一:字符与整型变量的实现#include int main(){ int c1,c2; char c3; c1='a'-'A'; c2='b'-'B'; c3='c'-32; printf("c1 is %d and c2 is %d\n",c1,c2); ... 阅读全文
posted @ 2014-11-07 16:28 kin2321 阅读(1941) 评论(0) 推荐(0) 编辑
摘要: 前面有一篇文章:数组名就是常量指针参考文章:http://blog.pfan.cn/whyhappy/5164.htmlconst int * pi 、int const * pi与int *constpi及其操作1 从const int i 说起你知道我们申明一个变量时像这样int i ;这个i是... 阅读全文
posted @ 2014-11-07 15:00 kin2321 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 1、short int i;char a;short int * pi;i=50;pi=&i;----------------指针的指针,浓重出厂short int * * ppi;//这是一个指向指针的指针,注意有两个*号ppi=π------结果:ppi是pi的地址值*ppi 是 pi地址... 阅读全文
posted @ 2014-11-07 11:04 kin2321 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 其一,做任何事情都要有上中下三策其二,只要定位好自己,才能把握好未来。其三,对每一个人都要有一个人物分析,一句话概括,如何与这种人相处。 阅读全文
posted @ 2014-11-07 10:40 kin2321 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #includeint i;void chushihua(){ printf( "*欢迎使用逻辑运算工具*\n"); printf("****************************************************************\n... 阅读全文
posted @ 2014-11-06 15:27 kin2321 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"int main(){ int a[3][4]; a[3][4]="1,2,3,4,5,6,7,8,9,10,11,12"; int (*ptr)[4]=a,*p=a[0]; printf("%d",*(ptr+2)+1); ... 阅读全文
posted @ 2014-11-06 13:00 kin2321 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 例一:从一个文件读入数据,然后写入另外一个文件package lipika;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.... 阅读全文
posted @ 2014-11-05 16:54 kin2321 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1、/*4.找出一个二维数组中的鞍点,即该位置上的元素在该行上最大、在该列上最小,也可能没有鞍点*/#includeint main(){ int i,j,max,min,row,col,n; //max该行最大值,min该列最小值,row是行数,col是列数 int a[3][4... 阅读全文
posted @ 2014-11-04 18:03 kin2321 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 第一篇文章http://www.cnblogs.com/bluewelkin/p/4063265.html续篇如下例一:统计字母的个数(忽略大小写,有空格也可继续统计字母,直到\n结束,但空格未统计)#include"stdio.h"main(){int a[100]={0},i,j; char c... 阅读全文
posted @ 2014-11-04 16:44 kin2321 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 所谓“文件”是指一组相关数据的有序集合。这个数据集有一个名称,叫做文件名。实际上在前面的各章中我们已经多次使用了文件,例如源程序文件、目标文件、可执行文件、库文件 (头文件)等。 文件通常是驻留在外部介质(如磁盘等)上的,在使用时才调入内存中来例一:读取文件中的内容#includeint main(... 阅读全文
posted @ 2014-11-04 11:45 kin2321 阅读(259) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 73 下一页