这个有什么错误吗

来源:2-9 强制类型转换

p t

2015-02-03 16:14

#inculde

int main {    double tempOne=6.777;    int tempTwo=(int)tempOne;    printf("%f\n",tempOne);    printf("%d\n",tempTwo); } 这个有什么错误吗
写回答 关注

5回答

  • qq_无名氏_6
    2015-08-05 21:53:57

    #include<stdio.h>

  • onemoo
    2015-02-04 09:56:46

    printf函数属于C语言标准库,需要包含标准输入输出库的头文件:

    #include <stdio.h>

    在include中用尖括号括起来的表示系统库的头文件。

  • 大伟_100
    2015-02-03 22:52:03

    头文件stdio.h中包含函数printf()的定义。

  • 梦想的方向
    2015-02-03 20:39:28

    #include<shdio.h>

  • 慕姐7262241
    2015-02-03 18:29:37

    #include "stdio.h"

C语言入门

C语言入门视频教程,带你进入编程世界的必修课-C语言

926299 学习 · 20799 问题

查看课程

相似问题