answersLogoWhite

0

To draw a rectangle in Dev-C++, you can use the graphics.h library, which provides functions for drawing shapes. First, include the graphics.h header and initialize the graphics mode using initgraph(). Then, use the rectangle(x1, y1, x2, y2) function, where (x1, y1) are the coordinates of one corner and (x2, y2) are the coordinates of the opposite corner. Finally, use getch() to wait for a key press before closing the graphics window with closegraph().

User Avatar

AnswerBot

3w ago

What else can I help you with?

Related Questions

How do you put blank space in devC plus plus?

Same as you do with any text editor: hit the spacebar.


Perimeter of rectangular?

Twice the (width plus length)


What type of algebra tile model would you draw for 5x plus 15 plus 6x plus 7 plus x?

Sorry, it's impossible to draw with a keyboard!


How do you draw in Dev c plus plus?

Download and install the WinBGIM Devpack. Once installed, you can include graphics.h to draw graphics.


How do you draw a pixel of varying intensity on the screen using C Plus Plus?

C++ has nothing to do with pixels. Your question may be related with 'Windows programming' or 'DOS programming' or 'X Window System programming'.


Perimeter of a rectangular?

2 times the length plus 2 times the height


How many rectangles are there in a rectangular prism?

Six, or four plus two squares.


How do you make C plus plus program to draw a straight line using for loop method?

void line(int length) { for(int i=0; i<length; ++i) std::cout<<'_'; std::cout<<std::endl; }


What does the graph of f x is equal to Sin inverse bracket X plus 2 bracket look like?

It is not possible to draw a graph using this browser.


What surface area is equivalent when sa equals 2lw plus 2hw plus 2lh?

This would be the surface area of a rectangular prism or a cube.


What equation would you use to find the volume of a rectangular a.volume equals lengthwidthheight b.volume equals length plus width plus height c.volume equals lengthwidth d.volume equals length plus?

The equation to find the volume of a rectangular object is (a) volume equals length times width times height.


Instructions on draw length of a browning bow?

I have a 1989 Browning Accelerator Plus and I was wanting to adjust the draw length?