资源简介
此程序主要用C语言编写,主要把是3年的信息绘成柱状图进行分析比较,数据可以自行输入~
代码片段和文件信息
#include “graphics.h“
#include “conio.h“
#include “stdio.h“
int income49products49income56products56income78products78;
int n=3;//years
void input()
{
printf(“Please input nation income and social products in 1949: “);
scanf(“%d %d“&income49&products49);
printf(“Please input nation income and social products in 1956: “);
scanf(“%d %d“&income56&products56);
printf(“Please input nation income and social products in 1978: “);
scanf(“%d %d“&income78&products78);
}
void draw()
{
rectangle(8080500400);
rectangle(9090125115);
rectangle(90130125155);
setfillstyle(1YELLOW);
bar(9090125115);
setfillstyle(1RED);
bar(90130125155);
outtextxy(130100“nation“);
outtextxy(180100“income“);
outtextxy(130140“social“);
outtextxy(180140“products“);
int temp[6]={income49products49income56products56income78products78};
int j=0;
for(int m=0;m<2*n;m++)
- 上一篇:俄罗斯方块源代码(C++源代码)
- 下一篇:编译原理_词法分析器_C语言版_简单易懂
相关资源
- 操作系统c语言模拟文件管理系统844
- C语言开发实战宝典
- C++中头文件与源文件的作用详解
- C语言代码高亮html输出工具
- 猜数字游戏 c语言代码
- C语言课程设计
- 数字电位器C语言程序
- CCS FFT c语言算法
- 使用C语言编写的病房管理系统
- 通信过程中的RS编译码程序(c语言)
- 计算机二级C语言上机填空,改错,编
- 用回溯法解决八皇后问题C语言实现
- 简易教务管理系统c语言开发文档
- 操作系统课设 读写者问题 c语言实现
- 小波变换算法 c语言版
- C流程图生成器,用C语言代码 生成C语
- 3des加密算法C语言实现
- 简单的C语言点对点聊天程序
- 单片机c语言源程序(51定时器 八个按
- 个人日常财务管理系统(C语言)
- c语言电子商务系统
- 小甲鱼C语言课件 源代码
- 将图片转换为C语言数组的程序
- C语言实现的一个内存泄漏检测程序
- DES加密算法C语言实现
- LINUX下命令行界面的C语言细胞游戏
- 用单片机控制蜂鸣器播放旋律程序(
- 学校超市选址问题(数据结构C语言版
- 电子时钟 有C语言程序,PROTEUS仿真图
- 尚观培训linux许巍老师关于c语言的课
评论
共有 条评论