i just wanna know how to use the graphics and all i just learned about sound i need to make a simple graphic program. it can be a tiny code too i just dont understand how to use graphics . and this too i use a really outdated IDE called turbo c++ 3.2 so bear with me here
First piece of advice, you're moving too fast if you are at the very VERY beginning.
Second, what operating system? That determines what is required to produce graphics. For example, if you have Windows you probably can't use Turbo C++ for graphics (in fact, it may be difficult with that compiler, but I'm not exactly sure what it is).
The language and the operating system MUST be aligned to each other, otherwise the compiler can't generate the correct output to control graphics (or anything else for that matter).
There are other free compiler tools, but we need to know the operating system to advise.
if you really are on DOS 5 or 6 ish, turbo has some built in examples of using their graphics in their demos. However, anything you 'learn' will be 30 years out of date**
** exception, not 'too' long ago some embedded computers still had a dos-on-a-chip OS. Those may still be supported by a few vendors, though it would still be a decade or more old hardware some of those embedded systems were built to last.
Assets can be found online by googling around “free game images” and “free game music” and the like. You can also mess with your own stuff. Some people use MSPaint, but it is worth your time to download and install the GIMP. https://www.gimp.org/
Getting started in game development is not hard, but there is a fairly steep learning curve.
Follow tutorials and learn how to use your new tools.
Pretty soon you will be modifying programs to do your own thing, and then writing your own programs from scratch.
If you want to make sound in that, on windows, you need a library. Sound and graphics are not part of c++, and those ancient tools (turbo or borland anything is 20+ years old now) had it built in because the internet did not yet exist and finding tools for microsoft OS as a student or hobby coder or a kid was challenging. It is not built into most compilers anymore. That is a good thing: you can choose to use opengl, or directx, or whatever fits YOUR needs.
As already said you probably should get some fundamentals first, and come back to graphics and sound. But if you want to take the hard road, when you download a library for graphics and or sound you will get some small demo programs that show you how to do it. Just monkey-see-monkey-do it and you will be able to make some noise etc pretty quickly.