I didn't find a dir.h file with my installations of Visual Studio.
But Borland C/C++ has a dir.h and GCC that comes with MinGW has one.
It seems Visual Studio does not have a dir.h :
"
I think that ANSI C does not have any directory functions, hence no dir.h and no dirent.h in Microtosoft C. Borland Turbo C of around 1990 had dir.h. And, as you demonstrated, your linux C compiler does have dir.h.
Microsoft Windows (all versions) has system functions to manipulate and traverse directories. And you access them by #including <windows.h>.
To port a program to Windows, probably the best route is to write your own dir.c and dirent.h file in Visual Studio (all versions).
" --
https://social.msdn.microsoft.com/Forums/en-US/8a022e07-4a83-44fb-950b-f29f1ff3ac28/crtdlldirh-not-found?forum=vcgeneral[
^]
You could try replacing
<dir.h>
with
<windows.h>
.
But you night need to find a compiler that
does have one. Because I don't think you'll be able to work around it yourself.
I also see that it expects bios.h -- and I don't have one of those either. Here's what I found:
"
As far as I know, bios.h is MS-DOS-based, so it won't be compatible with any OS post Windows ME, let alone the VC++ 2008 compiler.
" --
https://social.msdn.microsoft.com/Forums/en-US/8ffc9ea8-ccaf-4317-9248-aea4cf91f331/biosh-in-visual-c-2008-express-edition?forum=Vsexpressvc[
^]
I suspect that the code you've been assigned may be very old and the development environment may no longer be available.
In your other post, you mentioned DEV-C++ -- I hadn't heard of it, but maybe that's what you want? Did your teacher specify you should use DEV-C++ ? If so, then why aren't you?
This appears to be the site for DEV-C++ :
http://bloodshed.net/[
^]
Oh, wait, I see it says "It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler" -- which is what Quincy does as well. And I don't see a bios.h with my install of MinGW.