int gDriver=DETECT; //Detect the top priority graphic Driver.
initgraph(&gDriver, &gMode, <path to bgi directory: string>); //Initialize the graphic Mode.
closegraph(); //Terminate graphic mode.
restorecrtmode();//<--This is important. Restore to previous mode (Text mode)
This should be sufficient but BGI graphics are unsupported in 32-bit compilers & so I guess you are coding with an obsolete TurboC++ compiler. Chuck it.
And please in future be more elaborative in your explanations.
we have an assignment in computer programming .we will do images in c++ .can you give source code in creating a line,circle,coloring,other shape,how to fill it with color .i'll wait for your answer .monday its our deadline so i should do it now .thanks!
@madhub2v - please use real English words. "Thank Q" is not a word.
@apee_mimi - Welcome to DaniWeb! You have done what we call "thread hijacking". That is, you've asked a question unrelated to the original post at the bottom of a thread. You should, instead, start your own thread.