Skip to content

Instantly share code, notes, and snippets.

View AakashCode12's full-sized avatar
🎯
Focusing

Aakash Yadav AakashCode12

🎯
Focusing
View GitHub Profile
#include <iostream.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <dos.h>
#include <graphics.h>
#include <ctype.h>
//todo Global Declarations
int x1b, y1b, x2b, y2b;
#include <stdio.h>
#include <stdlib.h>
//todo Strcuture Definition
struct node
{
int data;
struct node *next;
};
struct node *head, *newnode, *temp, *prev, *prev1, *temp2;
@AakashCode12
AakashCode12 / DS Practical-9 || Queue Using Linked List.c
Created September 16, 2020 14:14
Stacks and Queue using Linked List data Structure
#include <stdio.h>
#include <stdlib.h>
//todo structure & pointers declaration
struct node
{
int data;
struct node *next;
};
struct node *front, *rear, *newnode, *temp;
int flagforstart=0;//?this zero indicates that there is no element in queue at start
#include <stdio.h>
#include <stdlib.h>
//todo Strcuture Definition
struct node
{
int data;
struct node *next;
};
struct node *head, *newnode, *temp, *prev, *prev1, *temp2;
@AakashCode12
AakashCode12 / Practical-6 || CG || 2D Transformations.cpp
Last active September 10, 2020 18:07
Done Finally by Matrix style
#include <stdio.h>
#include <iostream.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <dos.h>
#include <graphics.h>
//!global Variables
int arr[2][2], scale[2][2], rotationAngle, shearx[2][2], shearY[2][2];
//** open in Vs Code with better comments extension for better view
/*
* Queue using Array program Practical-4
*/
// todo standard lib / definitions
#include <stdio.h>
#define N 3
int queue[N];
int front = -1;
int rear = -1;
//** open in Vs Code with better comments extension for better view
/*
* Queue using Array program Practical-5
*/
// todo standard lib / definitions
#include<stdio.h>
#define N 5
int queue[N];
int front =-1;
int rear=-1;
#include <iostream.h>
#include <graphics.h>
#include <dos.h>
#include <conio.h>
//!Boundary Fill Algorithm with 4 points checking
int boundaryFill(int x, int y, int fillcolor, int backgroundcolor)
{
int current = getpixel(x, y);
if (current != backgroundcolor && current != fillcolor)
{
#include <stdio.h>
#include <stdlib.h>
//todo structure & pointers declaration
struct node
{
int data;
struct node *next;
};
struct node *head, *newnode, *temp, *backtemp;
import java.util.Scanner;
class StringBufferDemo
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
StringBuffer s = new StringBuffer(20);
System.out.print("Enter The String:");
s.append(sc.nextLine());