This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
#include <GL/glut.h> | |
double X1, Y1, X2, Y2; | |
const double D = 50; | |
float round_value(float v) | |
{ | |
return floor(v + 0.5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cmath> | |
#include<queue> | |
#include<algorithm> | |
#include<GL/glut.h> | |
#define NULL __null | |
#include<thread> | |
using namespace std; | |
/*int r = 30, xl = 320, yl = 440, xr = 320, yr = 440; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
#include <GL/glut.h> | |
double X1, Y1, len; | |
float round_value(float v) | |
{ | |
return floor(v + 0.5); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include <list> | |
#include<queue> | |
class AdjList{ | |
public: | |
AdjList(int V); | |
void addEdge(int v, int w); // function to add an edge to graph |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .data | |
mesg db 'enter 2-digit hexadecimal number',0xA | |
mesglen equ $-mesg | |
mesg1 db 'the result of multiplication is:',0xA | |
mesg1len equ $-mesg1 | |
mesg3 db 'enter your choice’,10,’1)successive addition’,10,’2)add and shift method’,10,’3)exit',0xA | |
mesg3len equ $-mesg3 | |
mesg4 db 'enter a valid choice',0xA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .data | |
rmodemsg db 0xa,'Processor is in Real Mode' | |
rmsg_len:equ $-rmodemsg | |
pmodemsg db 0xa,'Processor is in Protected Mode' | |
pmsg_len:equ $-pmodemsg | |
gdtmsg db 0xa,'GDT Contents are::' | |
gmsg_len:equ $-gdtmsg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> // for MS Windows | |
#include <GL/glut.h> // GLUT, include glu.h and gl.h | |
/* Global variables */ | |
char title[] = "Rotation of polygon"; | |
GLfloat anglePyramid = 0.0f; // Rotational angle for pyramid [NEW] | |
GLfloat angleCube = 0.0f; // Rotational angle for cube [NEW] | |
int refreshMills = 15; // refresh interval in milliseconds [NEW] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<GL/glut.h> | |
#include<iostream> | |
#include<math.h> | |
using namespace std; | |
int main_mat[10][3]; // input matrix | |
int res_mat[10][3]; // resultant matrix after applying transformation | |
int pivot[2]; | |
int no; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<exception> | |
#include<queue> | |
queue<int>q; | |
q. | |
using namespace std; | |
class Rational | |
{ | |
public: | |
Rational() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<exception> | |
#include<queue> | |
queue<int>q; | |
using namespace std; | |
class Rational | |
{ | |
public: | |
Rational() |