Proper folder structure for C++

I’ve looked at that exact same question before I posted my question, and that’s where I got the idea that I need to put the header and source files in the public and private folders, before, but as indicated in my question, it didn’t work for me