char word = 'A';cout<< word+1;
上述程式輸出為 「66」( A的ASCII十進位值為65 )char word = 'A';cout<< char (word+1);
上述程式輸出為 「B」( B的ASCII十進位值為66 )