定义
#define NORMAL_DATA  '\1' 使用 
myManager.m_forwardChannelTable[ NORMAL_DATA ] = this其中的 NORMAL_DATA  是什么意思

解决方案 »

  1.   

    Character combinations consisting of a backslash (\) followed by a letter or by a combination of digits are called "escape sequences." To represent a newline character, single quotation , or certain other characters in a character constant, you must use escape sequences. An escape sequence is regarded as a single character and is therefore valid as a character constant. Escape sequences are typically used to specify actions such as carriage returns and tab movements on terminals and printers. They are also used to provide literal representations of nonprinting characters and characters that usually have special meanings, such as the double quotation  ("). The following table lists the ANSI escape sequences and what they represent.Note that the question  preceded by a backslash (\?) specifies a literal question  in cases where the character sequence would be misinterpreted as a trigraph.
      

  2.   

    NORMAL_DATA只是定义的一个宏,在使用的时候会被\l所代替。
      

  3.   

    你就当NORMAL_DATA是'\l'就行了,起个名子还是有好处的
      

  4.   

    sorry,我没说清楚
    我想问的是 m_forwardChannelTable应该是一个数组
    对数组的访问通常是m_forwardChannelTable[1] 也就是index 是一个数值型的数据
    但此处是'\1'
    我想问,'\1'是一个字符,还是有别的什么含义