鱼C论坛

 找回密码
 立即注册
查看: 2360|回复: 5

无法执行

[复制链接]
发表于 2018-6-14 09:12:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
#include<studio.h>

void main()
{
        printf("%d\n,sizeof(int));
}

    无法执行
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2018-6-14 09:19:51 From FishC Mobile | 显示全部楼层
#include<studio.h>

void main()
{
        printf("%d\n",sizeof(int));
}
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-6-14 09:28:09 | 显示全部楼层
双引号少了一个。。。
  1. printf("%d\n", sizeof(int));
复制代码

这样才行
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-6-14 09:37:20 | 显示全部楼层
#include<studio.h>这是什么鬼?用stdio.h
printf("%d\n,sizeof(int));\n后面少一个双引号
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-6-14 12:07:13 | 显示全部楼层
This file contains so-called function prototypes of functions such as printf(), scanf(), etc. So that compiler knows what are their parameters and return values.

*The code for the printf() , scanf() function is not in stdio.h, just the function definition. The linker later resolves this when linking to the standard library.
computer-programming-all-chapters-16-638.jpg
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-6-14 21:32:24 | 显示全部楼层
谢谢
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-27 12:08

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表