Is there a way to use your IDE and include a file from a HTTP server to allow for addition of code without copy+paste into each answer program?
Something like:
#include http://www.mydomain.com/cppincludes.h
Thanks
Is there a way to use your IDE and include a file from a HTTP server to allow for addition of code without copy+paste into each answer program?
Something like:
#include http://www.mydomain.com/cppincludes.h
Thanks
In an #include
directive, angle brackets are used for searching the source files in the standard system directory. On the other hand, quote marks are used for searching the source files in local or project-specific paths. Since you haven’t used either notation, this code is invalid. Even if you used the stated notations, this code will still be invalid because it doesn’t follow the rules. So as far as I know, I don’t believe any such thing is possible. At least not directly.