This file contains 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
/* | |
todo : C menu driven program for adding and displaying students information such as Roll-number, Name, Phone Number, Marks etc using structure | |
?Assignment -1 Data Structures & Algorithms | |
*/ | |
#include<stdio.h> | |
#include<stdlib.h> | |
//!structure declarations | |
struct details | |
{ | |
char name[30]; |
This file contains 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> | |
#include <conio.h> | |
#define MAX 3 | |
//definitions | |
int st[MAX], top=-1; | |
void push(int st[], int val); | |
int pop(int st[]); | |
int peek(int st[]); | |
void display(int st[]); |
This file contains 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 re | |
print("please add spaces b/w each term") | |
line=input() | |
splitted_line=line.split( ) | |
#stack jo bech me hota hai in table while solving | |
stack=list() | |
#list to be printed | |
num_print=list() |
This file contains 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
/* | |
Practical no 2 --parenthisis check | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
//variable declarations | |
int top = -1; |
This file contains 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> | |
#include<ctype.h> | |
#include<string.h> | |
#define SIZE 100 | |
char stack[SIZE]; | |
int top = -1; |
This file contains 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 <stdio.h> | |
#include <conio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <dos.h> | |
#include <graphics.h> | |
This file contains 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> | |
void bresenhamsthick (int x1,int y1, int x2, int y2); | |
void bresenhamsthick (int x1,int y1, int x2, int y2) | |
{ |
This file contains 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 5 | |
int queue[N]; | |
int front =-1; | |
int rear=-1; |
This file contains 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; | |
public class Employee { | |
int empid; | |
String name; | |
float salary; | |
public void getInput() { | |
Scanner in = new Scanner(System.in); | |
System.out.print("Enter the empid :"); |
OlderNewer