C语言中引用自定义文件error,???

本菜鸡在做严奶奶的数据结构课本案例——括号匹配的检验过程中,想引用已经写好的API,但是include不进去

#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<stack.h>

就是报error,不太懂应该咋整。查了一下,原来include后<>内引用的只能是编译器自带的header file,如果要引用自定义的header,需要使用"",也就是

#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include"stack.h"

这么整才是坠吼的!

posted @ 2020-09-06 18:53  penguin1022  阅读(192)  评论(0编辑  收藏  举报