Skip to content

Instantly share code, notes, and snippets.

View monir-zaman's full-sized avatar
💭
Between Logic and Intuition

Monir Zaman monir-zaman

💭
Between Logic and Intuition
View GitHub Profile
@monir-zaman
monir-zaman / 3d_animation.cpp
Last active October 6, 2017 20:12
3d animation using poenGL, Run it on codeblocks
#include <windows.h> // for MS Windows
#include <GL/glut.h> // GLUT, include glu.h and gl.h
/* Global variables */
char title[] = "3D Shapes with animation";
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]
/* Initialize OpenGL Graphics */
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <bits/stdc++.h>
using namespace std;
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <bits/stdc++.h>
using namespace std;
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <bits/stdc++.h>
using namespace std;
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <bits/stdc++.h>
using namespace std;
#include <bits/stdc++.h>
#include<windows.h>
#include<GL/glut.h>
#include<stdio.h>
#include<math.h>
int monir = 9999;
void init(void)
{
glClearColor(0.0,0.0,0.0,0.0);
glOrtho(-100.0, 100.0, -100.0, 100.0, -1.0, 1.0);
monir
-- Drop all previous tables.
drop table employee;
drop table department;
drop table course_registration;
drop table student;
drop table degree_offered_by_dept;
drop table "degree";
drop table teaches;
drop table instructor;
--query1
select "name",employee_code from instructor where id_desig in
(
select id_desig from designation where desig_name like 'Asst. Professor'
) and id_dept in
(
select id_dept from department where dept_code like 'CSE'
);
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\title{Introduction to \LaTeX{}}
\author{Author's Name}
\maketitle