当前位置:柔美女性网 >

绿色生活 >心理 >

c语言scanf未定义标识符怎么解决

c语言scanf未定义标识符怎么解决

c语言scanf未定义标识符怎么解决

未定义标识符scanf是因为未包含头文件#include&ltstdio.h>。添加#include<stdio.h>即可。

工具/材料:以Microsoft Visual Studio 2013为例。

1、首先在桌面上,点击“Microsoft Visual Studio 2013”图标。

2、然后在该界面中,输入头文件“#include<stdafx.h> #include<windows.h> #include<stdio.h>”。

4、最后在该界面中,输入定义标识符scanf的代码“void main() { int a,b,charprintf("inout a,b,c、n") scanf("%d%d%d",&a.&base.&c) printf("inout a,b,c、n") Sleep(5000) } ”。

  • 文章版权属于文章作者所有,转载请注明 https://rmnxw.com/lvse/xinli/7n4xny.html