Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) #pragma

 

#pragma is a compiler-specific preprocessor directive.

 

The example code below produces no screen output, but gives the compiler message below.

 

 

#pragma message "Hello world"

int main()
{

}

 

Screen output:

 

 

 

Compiler output:

 

#pragma message: Hello world

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict