+ 2

Rectangular class

Hello, how can I write a rectangular class with 4 points? What does dot mean? Should the data members be the coordinates of the sides of a rectangle?

11th Mar 2022, 11:21 AM
Mhdis
Mhdis - avatar
4 Réponses
+ 1
#include <graphics.h> #include <conio.h> void main () { rectangle (200,200,300,300); getch (); }
11th Mar 2022, 11:57 AM
Prajwal Patil
+ 1
Environment and area function and print input function and constructor function. And want move function
11th Mar 2022, 12:16 PM
Mhdis
Mhdis - avatar
+ 1
Prajwal Patil I'm sorry, but this library is not taught. I do not know how to write with it.
11th Mar 2022, 12:18 PM
Mhdis
Mhdis - avatar
0
You just need to use graphics headerfile and write method Rectangle and give its coordinates in bracket
11th Mar 2022, 11:57 AM
Prajwal Patil