Valid characters for file name in the #include directive
问题 What are the valid characters for the file name in the #include directive? Under Linux, for example, I can use pretty much any character except / and \0 to have a valid file name, but I would expect C preprocessor to be more restrictive about the names of files I can include. 回答1: In C++, the source character set is defined in [lex.charset]: The basic source character set consists of 96 characters: the space character, the control characters representing horizontal tab, vertical tab, form