added problem statement at the top
This commit is contained in:
Executable → Regular
+8
-1
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Problem Statement: a) Write C++ program to draw the following pattern. Use DDA line and Bresenham‘s circle drawing algorithm. Apply the concept of encapsulation.
|
||||||
|
Code from Computer Graphics (SPPU - Second Year - Computer Engineering - Content) repository on KSKA Git: https://git.kska.io/sppu-se-comp-codes/CG
|
||||||
|
*/
|
||||||
|
|
||||||
|
// BEGINNING OF CODE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <graphics.h>
|
#include <graphics.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@@ -100,4 +106,5 @@ int main() {
|
|||||||
delay(50000);
|
delay(50000);
|
||||||
closegraph();
|
closegraph();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
// END OF CODE
|
||||||
|
|||||||
Executable → Regular
+8
-1
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Problem Statement: b) Write C++ program to draw the following pattern. Use DDA line and Bresenham‘s circle drawing algorithm. Apply the concept of encapsulation.
|
||||||
|
Code from Computer Graphics (SPPU - Second Year - Computer Engineering - Content) repository on KSKA Git: https://git.kska.io/sppu-se-comp-codes/CG
|
||||||
|
*/
|
||||||
|
|
||||||
|
// BEGINNING OF CODE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <graphics.h>
|
#include <graphics.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@@ -108,4 +114,5 @@ int main() {
|
|||||||
delay(50000);
|
delay(50000);
|
||||||
closegraph();
|
closegraph();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
// END OF CODE
|
||||||
|
|||||||
Reference in New Issue
Block a user