Hướng dẫn sửa lỗi #include <file.h> not found

Có ai ở đây rành về ngôn ngữ lập trình c/c++ thì hướng dẫn sửa lỗi #include <file.h> not found trong vscode đi ạ

Tải visual studio điiiiii

Nếu gặp lỗi không tìm thấy header thì khi biên dịch có thể thêm -I<đường dẫn tới header> ví dụ -I. (thư mục hiện tại) hay -Iinclude (thư mục include).

Nó lỗi trong ứng dụng đó đấy bạn

Dùng #include "file.h" nếu nó là local

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?