intigraph(&gmode,$gdriver,"what's write here ");

The directory where the graphics driver is located. If you put these files into the current BIN directory, then just use an empty string there: ""

You should not have a $ in your parameter as you call initgraph(). That $ should be replaced with an ampersand: & instead.

Oh! You have the order wrong, also:

First parameter is: &gdriver
Second parameter is: &gmode
Third parameter is: pointer to driver path, if not in current directory

There is no dollar sign in any of these parameters, only two &'s for special characters.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.