標(biāo)題: keil編程求助error c267: ShowoneChar': requires AnsI-style prototype [打印本頁(yè)]

作者: sshhll    時(shí)間: 2022-12-28 23:14
標(biāo)題: keil編程求助error c267: ShowoneChar': requires AnsI-style prototype
這個(gè)怎么改,求助各位大佬
error c267: ShowoneChar': requires AnsI-style prototype

)VKHN571QC0@0]QPH6MF(1).png (97.19 KB, 下載次數(shù): 67)

)VKHN571QC0@0]QPH6MF(1).png

LONQ]RK4T[1R2H0H(@G[V(H.png (18.6 KB, 下載次數(shù): 80)

LONQ]RK4T[1R2H0H(@G[V(H.png

作者: lkc8210    時(shí)間: 2022-12-29 08:48
在5/6行之間插入
void ShowOneChar(char);
作者: man1234567    時(shí)間: 2022-12-29 08:56
error c267: ShowoneChar': requires AnsI-style prototype
譯成人話就是:
編號(hào)第C267類錯(cuò)誤,你嗶嗶 “ShowoneChar” 是啥意思 ?
作者: Longan.Wang    時(shí)間: 2022-12-29 13:42
你調(diào)用了ShowoneChar這個(gè)函數(shù),但是你又沒(méi)聲明這個(gè)函數(shù),編譯器找不到。
作者: ytchfp163    時(shí)間: 2022-12-29 15:51
要么將 ShowOneChar(char)函數(shù)放到前面,要么在前面先聲明一下,不然編譯器認(rèn)不出來(lái),這跟python類語(yǔ)言有區(qū)別的。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1