Ogre::String myString = "Hello World!"; int length = myString.length(); // returns 12
Ogre::String str1 = "hello"; Ogre::String str2 = "world"; Ogre::String result = str1 + " " + str2; // returns "hello world"This example shows how to concatenate two strings using the + operator. Cpp Ogre String is a part of the Ogre3D graphics rendering engine library.