Skip to content

Latest commit

 

History

History
51 lines (45 loc) · 1.06 KB

File metadata and controls

51 lines (45 loc) · 1.06 KB
title Character Sequences | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
ms.assetid 1e6961a9-150e-4c13-b427-9af4b6a1fb7a
caps.latest.revision 7
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Character Sequences

ANSI 3.8.2 The mapping of source file character sequences

Preprocessor statements use the same character set as source file statements with the exception that escape sequences are not supported.

Thus, to specify a path for an include file, use only one backslash:

#include "path1\path2\myfile"  

Within source code, two backslashes are necessary:

fil = fopen( "path1\\path2\\myfile", "rt" );  

See Also

Preprocessing Directives