请各位大大帮忙
邮箱,包含按钮:数字0-9,(,),+,-,*,/急求一份用用C++编写的计算器GUI:izjnana@163,只要能算整数就可以
急求一份用用C++编写的计算器GUI
答案:3 悬赏:50 手机版
解决时间 2021-02-11 18:47
- 提问者网友:箛茗
- 2021-02-11 09:02
最佳答案
- 五星知识达人网友:西岸风
- 2021-02-11 09:15
我有,我会给你发的,等周末我给你发一份,希望收到后,给我多多加分啊
全部回答
- 1楼网友:行路难
- 2021-02-11 09:45
unsigned char i;0)
{
write_lcm_data=tab0[sn0]!=0)
{
delay_time1--;//
unsigned char year_buf,moth_buf;//iom16v.h>//
}
}
/////////////
void disp(data)
{
write_lcm_data=tab2[data];
delay1ms(2);
}
/////////
void disp_week(unsigned char wk)
{
wk=wk*2;
write_lcm_data=tab3[wk];
delay1ms(2);
wk++;
write_lcm_data=tab3[wk];
delay1ms(2);
}
//////////////////////////////////////////
void time_set(year,moth,day,week,hour,min,sec)
{
timer_year=year;
timer_moth=moth;
timer_day=day;
timer_week=week;
timer_hour=hour;
timer_min=min;
timer_sec=sec;
}
//////////////////////////////////////
void display_time(unsigned char time_adr)
{
sec_buf=timer_sec;
min_buf=timer_min;
hour_buf=timer_hour;
//////////////
sec1=sec_buf/10;
sec0=sec_buf-sec1*10;
///
min1=min_buf/10;
min0=min_buf-min1*10;
///
hour1=hour_buf/10;
hour0=hour_buf-hour1*10;
/////////////
write_lcm_ins=time_adr;
delay1ms(2);
disp(hour1);
disp(hour0);
write_lcm_data=':';
delay1ms(2);
disp(min1);
disp(min0);
write_lcm_data=':';
delay1ms(2);
disp(sec1);
disp(sec0);
}
/////////////////////////////////////
void display_date(unsigned char date_adr)
{
year_buf=timer_year;
moth_buf=timer_moth;
day_buf=timer_day;
week_buf=timer_week;
/////////////////////////////
year1=year_buf/10;
year0=year_buf-year1*10;
///
moth1=moth_buf/10;
moth0=moth_buf-moth1*10;
///
day1=day_buf/10;
day0=day_buf-day1*10;
///
week=week_buf;
///
////////////////////////////
write_lcm_ins=date_adr;
delay1ms(2);
write_lcm_ins=date_adr;
delay1ms(2);
disp(2);
disp(0);
disp(year1);
disp(year0);
write_lcm_data='-';
delay1ms(2);
disp(moth1);
disp(moth0);
write_lcm_data='-';
delay1ms(2);
disp(day1);
disp(day0);
write_lcm_data='-';
delay1ms(2);
write_lcm_data='(';
delay1ms(2);
disp_week(week);
write_lcm_data=')';
delay1ms(2);
}
////////////////////////////////
int main (void)
{
SP=0x0fff;
MCUCR = 0x80;
EICRA = 0x00; //extended ext ints
EICRB = 0x00; //extended ext ints
EIMSK = 0x00;
PORTA=0xff;
PORTB=0xFF;
PORTC=0xff;
PORTD=0xff;
PORTE=0xff;
PORTF=0xff;
PORTG=0xff;
DDRA=0xFF;
DDRB=0xFF;
DDRC=0xFF;
DDRD=0xFF;
DDRE=0xFF;
DDRF=0xFF;
DDRG=0xFF;
PORTB=0x7F;
delay1ms(500);
PORTB=0xFF;
PORTG=0xFF;
MCUCR|=0x80; //enable ex_ram.
XMCRA=0b0000
- 2楼网友:人類模型
- 2021-02-11 09:26
这个会涉及到很多代码啊不仅仅会用的C++ 还有脚本方面的!说以不好说这个问题
再看看别人怎么说的。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯