求帮助~!keil 提示too many arguments to function call
时间:10-02
整理:3721RD
点击:
报错too many arguments to function call,expected 0,have1
代码:
key_value=key_6x6_scan();
switch (key_value)
{
case 0:break;
case 1: mp3_play("0:/MUSIC/C2.mp3");break;
case 2: mp3_play("0:/MUSIC/D2.mp3");break;
case 3: mp3_play("0:/MUSIC/E2.mp3");break;
case 4: mp3_play("0:/MUSIC/F2.mp3");break;
case 5: mp3_play("0:/MUSIC/G2.mp3");break;
case 6: mp3_play("0:/MUSIC/H2.mp3");break;
case 7: mp3_play("0:/MUSIC/C3.mp3");break;
case 8: mp3_play("0:/MUSIC/D3.mp3");break;
case 9: mp3_play("0:/MUSIC/E3.mp3");break;
case 10: mp3_play("0:/MUSIC/F3.mp3");break;
case 11:mp3_play("0:/MUSIC/G3.mp3");break;
case 12:mp3_play("0:/MUSIC/H3.mp3");break;
case 13: mp3_play("0:/MUSIC/C4.mp3");break;
case 14: mp3_play("0:/MUSIC/D4.mp3");break;
case 15: mp3_play("0:/MUSIC/E4.mp3");break;
case 16: mp3_play("0:/MUSIC/F4.mp3");break;
case 17: mp3_play("0:/MUSIC/G4.mp3");break;
case 18: mp3_play("0:/MUSIC/H4.mp3");break;
case 19: mp3_play("0:/MUSIC/C5.mp3");break;
case 20: mp3_play("0:/MUSIC/D5.mp3");break;
case 21: mp3_play("0:/MUSIC/E5.mp3");break;
case 22: mp3_play("0:/MUSIC/F5.mp3");break;
case 23:mp3_play("0:/MUSIC/G5.mp3");break;
case 24:mp3_play("0:/MUSIC/H5.mp3");break;
case 25: mp3_play("0:/MUSIC/C5.mp3"); break;//si
case 26: mp3_play("0:/MUSIC/D5.mp3"); break;//do#
case 27 :mp3_play("0:/MUSIC/E5.mp3"); break;//re#
case 28 : mp3_play("0:/MUSIC/F5.mp3"); break;//fa#
case 29 : mp3_play("0:/MUSIC/G5.mp3"); break;//so#
case 30 :mp3_play("0:/MUSIC/A6.mp3"); break;//la#
case 31 : mp3_play("0:/MUSIC/B6.mp3"); break;//do#
case 32 : mp3_play("0:/MUSIC/C6.mp3"); break;//re#
}
代码:
key_value=key_6x6_scan();
switch (key_value)
{
case 0:break;
case 1: mp3_play("0:/MUSIC/C2.mp3");break;
case 2: mp3_play("0:/MUSIC/D2.mp3");break;
case 3: mp3_play("0:/MUSIC/E2.mp3");break;
case 4: mp3_play("0:/MUSIC/F2.mp3");break;
case 5: mp3_play("0:/MUSIC/G2.mp3");break;
case 6: mp3_play("0:/MUSIC/H2.mp3");break;
case 7: mp3_play("0:/MUSIC/C3.mp3");break;
case 8: mp3_play("0:/MUSIC/D3.mp3");break;
case 9: mp3_play("0:/MUSIC/E3.mp3");break;
case 10: mp3_play("0:/MUSIC/F3.mp3");break;
case 11:mp3_play("0:/MUSIC/G3.mp3");break;
case 12:mp3_play("0:/MUSIC/H3.mp3");break;
case 13: mp3_play("0:/MUSIC/C4.mp3");break;
case 14: mp3_play("0:/MUSIC/D4.mp3");break;
case 15: mp3_play("0:/MUSIC/E4.mp3");break;
case 16: mp3_play("0:/MUSIC/F4.mp3");break;
case 17: mp3_play("0:/MUSIC/G4.mp3");break;
case 18: mp3_play("0:/MUSIC/H4.mp3");break;
case 19: mp3_play("0:/MUSIC/C5.mp3");break;
case 20: mp3_play("0:/MUSIC/D5.mp3");break;
case 21: mp3_play("0:/MUSIC/E5.mp3");break;
case 22: mp3_play("0:/MUSIC/F5.mp3");break;
case 23:mp3_play("0:/MUSIC/G5.mp3");break;
case 24:mp3_play("0:/MUSIC/H5.mp3");break;
case 25: mp3_play("0:/MUSIC/C5.mp3"); break;//si
case 26: mp3_play("0:/MUSIC/D5.mp3"); break;//do#
case 27 :mp3_play("0:/MUSIC/E5.mp3"); break;//re#
case 28 : mp3_play("0:/MUSIC/F5.mp3"); break;//fa#
case 29 : mp3_play("0:/MUSIC/G5.mp3"); break;//so#
case 30 :mp3_play("0:/MUSIC/A6.mp3"); break;//la#
case 31 : mp3_play("0:/MUSIC/B6.mp3"); break;//do#
case 32 : mp3_play("0:/MUSIC/C6.mp3"); break;//re#
}
函数内参数个数不对,检查一下 mp3_play这个函数
看的头大,用的软件不一样啊!