小编BLY*_*mbu的帖子

#include <stdio.h> 问题(Visual Studio Code)

我正在尝试用 C 做一个项目,但我的字符串有问题#include<stdio.h>,我尝试了几个教程,但没有一个起作用,我的代码:


#include <stdio.h>

int main () {

     int age;
     printf ("Enter age:");
     scanf ("% d", age);
     printf ("age is% d", age);
     return 0;

}

Run Code Online (Sandbox Code Playgroud)

问题有2:

遇到#include 错误。更新包含路径。

无法打开源文件错误代码“stdio.h”。

对于这个项目,我创建了一个文件夹,其中有一个名为 .dist 的文件夹和我的 Main.c 文件

(为了更清楚我附上了图片)

在此输入图像描述

谁能告诉我如何解决这个问题?

c include include-path visual-studio-code

5
推荐指数
1
解决办法
6万
查看次数

标签 统计

c ×1

include ×1

include-path ×1

visual-studio-code ×1