
C语言程序设计
文章平均质量分 92
housz203
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C程序设计实验1
一、实验步骤: 1. 启动vc++6.0. 2. 新建--》文件选项卡--C++source file。 3. 新建文件夹D:\Cprogram、C程序名称:hello.c。 4. 回顾编程思路:输入--处理--输出 include 5. 编写程序,保存后,产生一个文件:hello.cpp。 6. 编译(Compile) 二、原创 2015-09-25 14:06:22 · 369 阅读 · 0 评论 -
C程序设计实验2
实验2: /* 已知:s=f(x,y)=x+y,m=5,n=4,求:f(m,n)=f(5,4)=? */ #include //main是主函数 //计算:m+n的和,即:s=m+n int main() { int m,n,s; //声明函数 int f(int x,int y); printf("请输入m和n的数值,用逗号隔开:"); /原创 2015-09-25 14:14:06 · 380 阅读 · 0 评论