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.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; |
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 <stdlib.h> | |
//todo Strcuture Definition | |
struct node | |
{ | |
int data; | |
struct node *next; | |
}; | |
struct node *head, *newnode, *temp, *prev, *prev1, *temp2; |
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 <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 |
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 <stdlib.h> | |
//todo Strcuture Definition | |
struct node | |
{ | |
int data; | |
struct node *next; | |
}; | |
struct node *head, *newnode, *temp, *prev, *prev1, *temp2; |
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 <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]; |
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
//** 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; |
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
//** 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; |
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.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) | |
{ |
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 <stdlib.h> | |
//todo structure & pointers declaration | |
struct node | |
{ | |
int data; | |
struct node *next; | |
}; | |
struct node *head, *newnode, *temp, *backtemp; |
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
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()); |