C++ program to draw a line by accepting coordinates from the user
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp -lgraph
kodingwindow@kw:~$ ./a.out Enter the x1 coordinate 50 Enter the y1 coordinate 50 Enter the x2 coordinate 150 Enter the y2 coordinate 150
What Next?
C++ program to draw a thick line using the setline function
C++ program to draw a dotted line using the setline function
C++ program to draw a dotted thick line using the setline function
Advertisement