怎么輸出錯誤
#include
int main() { ? ?//定義小編兜里的錢 ? ?double money = 12 ? ? ; ? ?//定義打車回家的費用 ? ?double cost = 11.5 ? ? ?; ? ? ?printf("小編能不能打車回家呢:"); ? ?//輸出y小編就打車回家了,輸出n小編就不能打車回家 ? ?printf( "%c\n", cost<=money ? "y" :"n" ? ? ? ? ? ? ? ? ? ? ? ); ? ?return 0; }
2019-03-23
字符要用單引號‘’括起來而不是雙引號“”
2019-03-06
字符要用單引號‘’括起來而不是雙引號“”