also, how could I put a code with another language in the middle of a C++ document?
If you're using Windows, you could use the GDI through the Windows API or through the MFC classes, or you could use DirectX or OpenGL for 3D high-speed graphics. You could also use any number of available libraries, SDL for example. In Linux, you're going to have to go through the X libraries (not recommended). Probably you should use some toolkit, like the Qt libraries. For 3d graphics, you can use OpenGL, or OpenGL + SDL (thats what I use).
Also, I don't get what you mean by embedded another language into a C++ document. If you mean whether you can embed code from another language into a C++ source file, then no, unless you translate it to C++, because the compiler only compiles C/C++ and not any other language. However, most compilers do support some form of embedded assembly language. The MSVC compiler uses the "__asm" keyword I believe. In gcc/g++ it would be asm("...")