Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) trigraph

 

A trigraph is a three-character-combinatition to replace certain characters.

 

Monograph   Trigraph
    [          ??(
    ]          ??)
    {          ??<
    }          ??>
    #          ??=
    \          ??/
    ^          ??'
    |          ??!
    ~          ??-

 

 

 

 

 

Hello World with trigraphs

 

??=include <iostream>

int main()
??<
  std::cout << "Hello world??/n";
??>

 

 

 

 

 

Qt Creator Note for Qt Creator users

 

Add the following line to your Qt project file to enable trigraphs:

 

QMAKE_CXXFLAGS += -trigraphs

 

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict