Skip to content

Instantly share code, notes, and snippets.

@2ofael
2ofael / DDA-Line-Drawing-OpenGL.cpp
Created May 26, 2023 13:31 — forked from sakilk130/DDA-Line-Drawing-OpenGL.cpp
DDA Line Drawing Algorithm using OpenGL
#include<stdlib.h>
#include<stdio.h>
#include <GL/gl.h>
#include <GL/glut.h>
float x1, x2, y1, y2;
void display(void) {
float dy, dx, step, x, y, k, Xin, Yin;
dx = x2 - x1;
#include<time.h>
#include<conio.h>
#include<stdio.h>
#include<windows.h>
#include<dos.h>
#include<stdlib.h>
void Time_Setter();
int t=30;
int c=0;
class Solution {
public:
int lengthOfLIS(vector<int>& nums)
{
int n=nums.size();
int dp[n+1];
memset(dp,0,sizeof(dp));
dp[0]=0;
int ans=0;