![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言,程序显示
文章平均质量分 64
weixin_38095675
这个作者很懒,什么都没留下…
展开
-
关于vs运行结果的显示
添加头文件;在程序的最后加上一行:getch();C标准库中,getch()包含在conio.h而不是stdio.h中,而getchar()、printf()等包含在stdio.h中。例如:#include #include /*为了使程序运行结果在.exe文件中持续显示*/void minmax(int a[],int len,int *max, int *min);int main(vo原创 2017-05-31 10:01:25 · 4406 阅读 · 1 评论 -
typedef struct与struct的区别
1、typedef为C语言的关键字作用:为一种数据类型定义一个新名字。这里的数据类型包括内部数据类型(int,char等)和自定义的数据类型(struct等)。2、在编程中使用typedef目的一般有两个: 1) 给变量一个易记且意义明确的新名字 2) 简化一些比较复杂的类型声明3、应用 1) typedef的最简单使用 例如: type...原创 2017-06-02 17:52:41 · 193 阅读 · 0 评论