Quote:
hi i want to run this code
#include<iostream>
#include<conio.h>
#include<graphics.h>
i have error in graphics.h i have C++ 2005
|
A7MADOOV, I've reported your post to be split into its own thread. Mods: I expect this reply to be split along with it.
My reply is: it doesn't work because you're trying to include proprietary Borland C++ headers in a project that you're building with Microsoft Visual Studio 2005. There is no reason at all to believe that Microsoft's compiler would support the proprietary extensions included with a competing compiler
from the mid 90s.
Furthermore, conio.h and graphics.h are specifically meant for writing DOS programs. A program using them would not run in any other operating system.
If you got that code out of a C++ book, then throw that book out NOW. The book was obviously written for Borland C++. Borland C++ was released before C++ was standardized in 1998, so the book would not only be teaching you proprietary Borland C++ extensions, but also pre-standard C++.
And BTW, as you can see from reading the opening post in the "C/C++ tutorials" sticky thread, the sticky thread is for external links to C/C++ tutorials. Not for asking for C/C++ help.