帮我看看帮哪不对,谢谢啦

连接器pin的电气性能。请看图纸,哪位高手能帮我看看描述有错误没? 应该怎么改?谢谢了!_百度知道
#include &iostream& #include &string& struct student { char name[10]; student * }; int main() { student
不好意思,没有看懂。。。能否详细解释一下。谢谢!!~~
其他类似问题
电气性能的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁帮我看看这段程序为什么编译时错误,求高手帮我改下啊。修改后可以用的话我会追加分的。谢谢啦。_百度知道
帮我看看这段程序为什么编译时错误,求高手帮我改下啊。修改后可以用的话我会追加分的。谢谢啦。
#include&reg51.h&#define LEDData P0unsigned char code LEDCode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};unsigned char time=99;unsigned char second,count,count1;
//秒,计数器sbit LEDH = P2^6;
//高位阴极sbit LEDL = P2^7;
//低位阴极
sbit buzzer = P2^5;
//蜂鸣器sbit Alam=P3^6;
//倒计时到0标志
void Delay5ms(void){ for(i=1000;i&0;i--);}void DisplayTime(void){ LEDData=LEDCode[second/10]; LEDH=0; Delay5ms(); LEDH=1; LEDData=LEDCode[second%10]; LEDL=0; Delay5ms(); LEDL=1;}//******************************主函数************************************************* void main(void){ TMOD=0x11;
//两个8为计数器
//两个8位定时计数器
//两个8位定时计时器
//作计数器
//作寄存器 second=
//总中断打开 ET0=1;
//定时器0中断打开 ET1=1;
//定时器1中断打开
//定时器0开关关闭 TR1=0;
//定时器1开关关闭 EX0=1;
//外部中断0开 IT0=1;
//边沿触发 IT1=1;
//边沿触发 EX1=1;
//外部中断1开 PX0=1;
//外部中断0为高优先级控制位 PX1=1;
//外部中断1为高优先级控制位 PT0=0;
//定时/ 计数器T0为低优先级中断
DisplayTime();
if(Over){
buzzer();/延时一会儿buzzer();延时一会儿buzzer();延时一会儿
}}void PxInt0(void) interrupt 0{ if(Over==1) {
//定时器1开关关闭
//作寄存器
//作计时器 } else {
second= } TR0=1; //--------------开启计时器}void PxInt1(void) interrupt 2{
TR0=0; //--------------关闭计时器} //*********************************中断服务函数**************************************void
time0_int(void) interrupt 1 {
//计时器
//寄存器
//开启计时器
if(count==20)
if(second==0)
//定时器0关闭
//定时器1打开
}}//*********************************中断服务函数**************************************void
time1_int(void) interrupt 3 {
//计时器
//寄存器
//定时器1打开
if(count1==10)
buzzer();调用响一声函数
//*********************************响一声函数**************************************
void buzzer(void)
unsigned int b,c;
for(b=60;b&0;b--)
for(c=3;c&0;c--)
buzzer=!buzzer //将蜂鸣器控制端取反
提问者采纳
#include&reg51.h&#define LEDData P0unsigned char code LEDCode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};unsigned char time=99;unsigned char second,count,count1;
//秒,计数器sbit LEDH = P2^6;
//高位阴极sbit LEDL = P2^7;
//低位阴极
sbit buzzer = P2^5;
//蜂鸣器sbit Alam=P3^6;
//倒计时到0标志
void buzzer1(void);void Delay5ms(void){ for(i=1000;i&0;i--);}void DisplayTime(void){ LEDData=LEDCode[second/10]; LEDH=0; Delay5ms(); LEDH=1; LEDData=LEDCode[second%10]; LEDL=0; Delay5ms(); LEDL=1;}//******************************主函数************************************************* void main(void){ TMOD=0x11;
//两个8为计数器
//两个8位定时计数器
//两个8位定时计时器
//作计数器
//作寄存器 second=
//总中断打开 ET0=1;
//定时器0中断打开 ET1=1;
//定时器1中断打开
//定时器0开关关闭 TR1=0;
//定时器1开关关闭 EX0=1;
//外部中断0开 IT0=1;
//边沿触发 IT1=1;
//边沿触发 EX1=1;
//外部中断1开 PX0=1;
//外部中断0为高优先级控制位 PX1=1;
//外部中断1为高优先级控制位 PT0=0;
//定时/ 计数器T0为低优先级中断
DisplayTime(); if(Over) { // buzzer1();//();/延时一会儿buzzer();延时一会儿buzzer();延时一会儿 }
}}void PxInt0(void) interrupt 0{ if(Over==1) {
//定时器1开关关闭
//作寄存器
//作计时器 } else {
second= } TR0=1; //--------------开启计时器}void PxInt1(void) interrupt 2{
TR0=0; //--------------关闭计时器} //*********************************中断服务函数**************************************void
time0_int(void) interrupt 1 {
//开启计时器
if(count==20)
if(second==0)
//定时器0关闭
//定时器1打开
}}//*********************************中断服务函数**************************************void
time1_int(void) interrupt 3 {
//定时器1打开
if(count1==10)
buzzer1();//();调用响一声函数
//*********************************响一声函数**************************************void buzzer1(void){
unsigned int b,c;
for(b=60;b&0;b--)
for(c=3;c&0;c--)
buzzer=! //将蜂鸣器控制端取反
你好!我上面的程序是用在99秒倒计时的,这程序我烧录后测试过,你改过的程序在99秒倒计时完了后蜂鸣器不停的响,效果不错,但是我想继续这程序上再修改些行不?就是想在99秒倒计时的时候加上每倒计时一秒蜂鸣器响一下,可以吗?如果修改后可以用的话我马上采纳!!!谢谢啦。
提问者评价
算了,这样也可以。
其他类似问题
按默认排序
其他1条回答
#include&reg51.h&#define LEDData P0unsigned char code LEDCode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};unsigned char time=99;unsigned char second,count,count1;
//秒,计数器sbit LEDH = P2^6;
//高位阴极sbit LEDL = P2^7;
//低位阴极
sbit buzzer = P2^5;
//蜂鸣器sbit Alam=P3^6;
//倒计时到0标志
void Delay5ms(void){ for(i=1000;i&0;i--);}void DisplayTime(void){ LEDData=LEDCode[second/10]; LEDH=0; Delay5ms(); LEDH=1; LEDData=LEDCode[second%10]; LEDL=0; Delay5ms(); LEDL=1;}//******************************主函数************************************************* void main(void){ TMOD=0x11;
//两个8为计数器
//两个8位定时计数器
//两个8位定时计时器
//作计数器
//作寄存器 second=
//总中断打开 ET0=1;
//定时器0中断打开 ET1=1;
//定时器1中断打开
//定时器0开关关闭 TR1=0;
//定时器1开关关闭 EX0=1;
//外部中断0开 IT0=1;
//边沿触发 IT1=1;
//边沿触发 EX1=1;
//外部中断1开 PX0=1;
//外部中断0为高优先级控制位 PX1=1;
//外部中断1为高优先级控制位 PT0=0;
//定时/ 计数器T0为低优先级中断
DisplayTime();
if(Over){
buzzer();/延时一会儿buzzer();延时一会儿buzzer();延时一会儿
}}void PxInt0(void) interrupt 0{ if(Over==1) {
//定时器1开关关闭
//作寄存器
//作计时器 } else {
second= } TR0=1; //--------------开启计时器}void PxInt1(void) interrupt 2{
TR0=0; //--------------关闭计时器} //*********************************中断服务函数**************************************void
time0_int(void) interrupt 1 {
//开启计时器
if(count==20)
if(second==0)
//定时器0关闭
//定时器1打开
}}//*********************************中断服务函数**************************************void
time1_int(void) interrupt 3 {
//定时器1打开
if(count1==10)
buzzer();调用响一声函数
//*********************************响一声函数**************************************
void buzzer(void)
unsigned int b,c;
for(b=60;b&0;b--)
for(c=3;c&0;c--)
buzzer=!buzzer //将蜂鸣器控制端取反
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁502——Bad Gateway
您访问的页面正在维护,我们正在尽全力恢复访问,请您稍候…
ServerName:chn-hz-wy-se4/1.2.9-3跪求大神帮忙!帮我看看这篇文章有什么错误的地方,谢谢了_英语吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:652,149贴子:
跪求大神帮忙!帮我看看这篇文章有什么错误的地方,谢谢了收藏
A Monkey and a TigerToday I am very happy to stand here, telling you a story:A Monkey and a tiger .Every one thinks the monkey is very small, but the tiger is strong.In this story Little Monkey uses his wisdow to bit the tiger. just remenber those who are weak can beat those who are strong. let's share the story.An old tiger lives in the forest. He does not want to look for food . He often tells other animals to bring him something to eat.   One day He sees a monkey and says," I'm hungry, monkey. Go to the village and bring me a fat pig."  "Oh, Tiger," says the monkey. "I can't do that now. There is another tiger over there. He also wants a fat pig. He will not let me get anything for you to eat. I am afraid of him."  "What?" cries the tiger. "Show me that tiger. I will teach him a lesson ."  "Come with me," says the monkey.  The monkey and the tiger get to a bridge over the river. "Now look down at the water," says the monkey.  "Do you see the head, the white teeth and the big green eyes of a tiger?"  "Yes, I do," says the old tiger," I will eat him up!"“Grr…! So you told Monkey not to bring me anything?!Grrr … I’ll kill you!”With these words the tiger jumped into the river. He did not come out again.“Ha,ha, ha! Goodbye, Mr Tiger,” said the monkey and he went away .
没人咩?????
来人啊啊啊
登录百度帐号我的游戏推荐游戏
后查看最近玩过的游戏
为兴趣而生,贴吧更懂你。或用海伦法求三角形面积的c语言,帮我看看哪里写的不对啊,谢谢!_百度知道
用海伦法求三角形面积的c语言,帮我看看哪里写的不对啊,谢谢!
#include &stdio.h&#include &conio.h&#include &math.h&int main(){
float a,b,c,p,s,
scanf(&%f%f%f&,&a,&b,&c); p=(a+b+c)/2.0; mid=(p*(p-a)*(p-b)*(p-c)); if(p&0) mid=-
s=sqrt(mid); printf(&此三角形的面积是%6.2f\n&,&s); printf(&%f&,mid);
return 0;}
提问者采纳
#include &stdio.h&#include &conio.h&#include &math.h&int main(){
float a,b,c,p,s,
scanf(&%f%f%f&,&a,&b,&c); p=(a+b+c)/2.0; mid=(p*(p-a)*(p-b)*(p-c)); if(p&0)//???what for mid=-//???what for
s=sqrt(mid); printf(&此三角形的面积是%6.2f\n&,s);//& printf(&%f&,mid);
return 0;}
提问者评价
哦!多谢提醒!我还是太大意了……
其他类似问题
c语言的相关知识
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 看看帮 的文章

 

随机推荐