Hi,
I'm not great at C++ and I don't have a compiler on this machine, but I suspect you have put both code files in the same C++ project and they are conflicting with each other.
Although you have put the files into a different directory, they are still part of the same application and the compiler will build them into 1 exe file. You need to create a new C++ project for each example. The simplest way is to create a new solution each time you do an example.
For now, the easiest way to think of things is:
- Solution: A collection of one or more projects. If an application will contain lots of DLLs or EXEs, this lets you see the code for all of them in one place.
- Project: Creates 1 DLL or EXE file.
- Folder: Helps you organise your code. The compiler doesn't care about this tho - it just looks at what is in the project.