Ohh I really need your help great programmers ...
I am new for programming and I am trying to do things by myself but here I need your help :-|
I would like to draw something in C or C++ but I got no basic IDEA ...
For example any kinds of graphics I would like to draw but...
I searched internet but I couldn't find concrete answer please give me some data link where can I learn or give me some advise of yours please please ...
give me some examples how can I use graphics.h lib .
I tried to draw "sine wave" but I couldn't please help me with this ...
graphics.h is a very old library for doing graphics in DOS with Borland C++ 3.x.
It's not supported under Windows, and the compiler isn't supported either.
Spotted a few errors (although i accept it is work in progress ): main should be declared as int main NOT void main....
...GraphMode is undefined as the previous ; finishes the statement (change the previous ; to a , ) and also ESC and tempstring are not used! also do you not have to shut down the driver at the end? - and bear in mind main returns 0; :p
You could potentially draw short lines following the x,y coordinates of your sin(x) function.
Forget about the old graphics.h and Borland BGI DOS stuff, that was left in the 16 bit graveyard a long time ago!
Thanks for suggestion but you know I hardly understand that code and here I am going to show you the code which I began first here and this is only drawing of X and Y oxes and I have to go on drawing sin(x) function please give me your suggestion....
closegraph(); // escape graphic mode
}
Thanks very much ....
Jwenting says:
"graphics.h is a very old library for doing graphics in DOS with Borland C++ 3.x.
It's not supported under Windows, and the compiler isn't supported either."
I guess you are using Microsoft VC++...
1000BhP says:
"main should be declared as int main NOT void main...."
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.