问答

汇集网友智慧,解决技术难题

XCentury

TA的家园币:12  

  • 求助,函数没写到主函数里,为什么能执行成功

    voidSMG_Play()该函数没写到主函数里,但是一个错误和警告都没有,而且该函数还执行成功了?为什么??求助#include#includeunsignedcharcodeSMG_Select_1[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,0xbf,0x7f};unsignedinttemp=0;unsignedcharc=0;unsignedcharb=0;voidSMG_Play();voidSCQ_Set(unsignedchara){switch(a){case4:P2=(P2&0x1f)|0x80;break;case5:P2=(P2&0x1f)|0xa0;break;case6:P2=(P2&0x1f)|0xc0;break;case7:P2=(P2&0x1f)|0xe0;break;case0:P2=(P2&0x1f)|0x00;break;}}voidDelay_1(unsignedintt){while(t--);}voidDelay_SMG(unsignedintt){while(t--){SMG_Play();}}voidSMG_Set(unsignedcharnum,unsignedcharloc){SCQ_Set(6);P0=0x01

    函数 se unsigned dc play

    2021-02-07 3