Anyone going to do this I can really recommend downloading FreeDOS. It is a much updated (and more free) version of MSDOS, and it comes bundled with compilers, libraries, editors etc etc.
https://www.freedos.org/download/
The new version 1.3 is supposedly available as a LiveCD that you can use without installing first. I still run 1.2 installed on a USB stick that is perfect to boot into for distraction-free DOS use. It also runs in emulators like VirtualBox of course, but it is fun to boot from a USB stick to turn any PC into instant DOS development machine.
Only application missing from FreeDOS that I found it worthwhile to download and install beyond everything that is already included is animator, but that is easy to fix:
https://github.com/AnimatorPro/Animator-Pro