When I compiled this program (from C++ Programming Language 4th edition):
main.cpp
#include #include #incl
Just running through a Visual Studio Code tutorial and came across a similiar issue.
Replace #include "stdafx.h" with #include "pch.h" which is the updated name for the precompiled headers.
#include "stdafx.h"
#include "pch.h"