How can I get and use the header file graphics.h in my C++ program?
<graphics.h>
is very old library. It's better to use something that is new
Here are some 2D libraries (platform independent) for C/C++
SDL
GTK+
Qt
Also there is a free very powerful 3D open source graphics library for C++
OGRE
Compiler can't find sstream?
graphics.h
is a non-standard header. Most likely it refers to the old BGI graphics library of the Turbo C DOS compiler. It will only work on that particular compiler. And of course DOS is a completely obsolete OS nowadays.
If you are interested in 3D graphics programming, then OpenGL and/or DirectX are indeed better, modern alternatives, supported by many compilers.
Related Topics
How to List-Initialize a Vector of Move-Only Type
How to Make Cin Take Only Numbers
Which Is Faster: Stack Allocation or Heap Allocation
Accessing Class Members on a Null Pointer
Difference of Keywords 'Typename' and 'Class' in Templates
Is the Pimpl Idiom Really Used in Practice
Why Do C and C++ Compilers Allow Array Lengths in Function Signatures When They'Re Never Enforced
How to Use Boost in Visual Studio 2010
Why How to Not Push_Back a Unique_Ptr into a Vector
Embedding Resources in Executable Using Gcc
Forward Declaration of Nested Types/Classes in C++
Optimizing Away a "While(1);" in C++0X
Opencv Point(X,Y) Represent (Column,Row) or (Row,Column)
Performance of Built-In Types: Char VS Short VS Int Vs. Float Vs. Double