全文预览

c语言课程设计-计算器程序设计报告书

上传者:塑料瓶子 |  格式:doc  |  页数:52 |  大小:0KB

文档介绍
FT 0x4b /*光标左移键*/Р#define RIGHT 0x4d /*光标右移键*/Р#define ENTER 0x0d /*回车键*/Рvoid *rar; /*全局变量,保存光标图象*/Рint specialkey(void) ; /*获取特殊键函数*/Рint arrow(); /*设置箭头光标函数*/Рmain()Р{Р float num1=0,num2=0,result;Р int x,y,x0=315,y0=160,i,j,v,m,n,act,t1=0,t2=0,cd=0,zj=0,zj1=0,num=0,cd1=0,a[25];Р int flag1,flag2=1,flag3=1,flag4=1,flag5=1;Р char str2[5]={""},temp[20]={""},c,str3[10]={""},str4[10]={""},str5[20]={""},str7[20]={""};Р char str1[]={'A','1','2','3','4','5','6','7','B','8','9','=','+','-','*','/','C',Р 'G','H','I','J','K','L','0','D','M','N','O','P','Q','.','$','E','R','S','T','U',Р 'V','@','(','F','W','X','Y','Z','&',')','|'};Р int sj1[]={50,250,250,250,150,175,50,250};Р int sj2[]={145,285,155,285,150,275,145,285};Р int driver,mode;Р driver=DETECT;Р mode=0;Р initgraph(&driver,&mode,""); /*初始化*/

收藏

分享

举报
下载此文档