New
#1
C++ graphics in windows 7
Hi ,
I have turbo C++ which starts in dos box0.74.
All the other program are running but when i write a proram for drawing a circle, it won't work.
Please help!!!!!
thanking you
Hi ,
I have turbo C++ which starts in dos box0.74.
All the other program are running but when i write a proram for drawing a circle, it won't work.
Please help!!!!!
thanking you
Could please clarify on what the problem is? Does your complier work?
Are you sure you've written the correct code? Check for any errors indicated by your complier in your source code.
If your having problems with creating a circle, then this may be of help to you - Creating a circle - C++ Forum
Hi radhika15397, Welcome..I was also facing same issue. I don't do C++ as profession, I just like to make small programs. I was trying to make Loading bar in C++ and was not able to make one. I read many articles and it confirms that Turbo C++ compiler is not compatible with our Win 7. You might be getting error "BGI graphics not supported in windows" or something like that...This means that the graphic file is not supported in win 7.
You can try this and see if it helps. Try to save file like this.
File ==> New ==> Project
Platform: DOS (Standard), Libraries: BGI
If it don't work so type: initgraph(&dr,&m,"C:\\BC5\\BGI");
Turbo C++ was released in 1990! What C++ specification are you writing in? If you writing with modern Standard C++ specification, then your complier may not understand the code your writing, even though it is technically correct.
Look for other C++ compilers, this is a recommended one:
Download | Microsoft Visual Studio 2012
There are 2012/13 versions, but didn't see any there as free. [says 2012 above but it's showing you the 2010 downloads]
Plus plenty of books available on that one to learn.