About Integration of a external C++ code in MIT App inventor

this is unfortunately not possible

you could convert the C++ code into JavaScript and use the Webviewer component and its WebViewString block, see this example

or you could convert it into Java and write your own Extension

more information about how to create an extension see the App Inventor Extensions document
however that will be more advanced and will require some Java skills...

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.