#include Syntax
I want to include a header using a path. Which one would be correct syntax?:
#include <C:\DOCUMENTS AND SETTINGS\ADMIN\MY DOCUMENTS\TEST\test.h>
or
#include <C:\\DOCUMENTS AND SETTINGS\\ADMIN\\MY DOCUMENTS\\TEST\\test.h>
Or should I use "" instead of <>?
#include "whatever.bork" will first look in the current directory for a whatever.bork file, and then, in the 'standard include locations'.
#include <whatever.bork> will directly look for whatever.bork in the 'standard include locations'.
In any case, the preferred syntax is to use forward slashes, not backslashes - even on windows. So you should probably go with
#include "C:/Documents and Settings/Admin/My Documents/Test/test.h"
#include <whatever.bork> will directly look for whatever.bork in the 'standard include locations'.
In any case, the preferred syntax is to use forward slashes, not backslashes - even on windows. So you should probably go with
#include "C:/Documents and Settings/Admin/My Documents/Test/test.h"
Quote:Original post by Arild FinesQuote:Original post by Fruny
#include "whatever.bork"
Is that the new extension in C++0X?
Basically: lmao.
Quote:Original post by MitchellHnononono. .lmao are inline files.Quote:Original post by Arild FinesQuote:Original post by Fruny
#include "whatever.bork"
Is that the new extension in C++0X?
Basically: lmao.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement