童小小美
2015-10-31 10:41
#include
int main() { //定义小编兜里的钱 double money = 12 ; //定义打车回家的费用 double cost = 11.5 ; printf("小编能不能打车回家呢:"); //输出y小编就打车回家了,输出n小编就不能打车回家 printf( "%c\n",money >= cost ?'y':'n' ); return 0; }为什么我这个运行时有错误的呢,求解~~~~添加<stdio.h>或者“stdio.h”
#include<stdio.h> 这个不能少;注意细节~
头文件没有加
#include <stdio.h>
C语言入门
926299 学习 · 20799 问题
相似问题
回答 3
回答 2
回答 2
回答 1
回答 2