The following text is C + + source code and it will write the words `` Hello World ! '' C + + inherits most of C 's syntax . The following is Bjarne Stroustrup 's version of the Hello world program that uses the C + + standard library stream facility to write a message to standard output :