I use Visual Studio on Windows, and I currently use ..\ to specify one folder/directory up when including files. But I was wondering if this is Windows specific because Windows uses the less common backslash as opposed to the forward slash. I can also use ../ , that is, forward slash, and my program compiles the same, but I'm not sure if this is because of the preprocessor standard interpreting this as "one folder up" on whichever platform it's running, or because of the fact that (I'm not sure when) Windows started accepting forward slashes as meaning the same thing as backslashes. I figured that since Windows accepts both, and the more common is the forward slash, I may as well use forward slashes everywhere, and when or if I try to compile on another platform it should work.
I'm specifically asking about C++, but I understand the C preprocessor is the same? Is this the correct way of going about it?