Skip to content

Instantly share code, notes, and snippets.

View AakashCode12's full-sized avatar
🎯
Focusing

Aakash Yadav AakashCode12

🎯
Focusing
View GitHub Profile
@AakashCode12
AakashCode12 / Assignment -1 Data Structures & Algorithms.c
Created July 12, 2020 10:18
C menu driven program for adding and displaying students information such as Roll-number, Name, Phone Number, Marks etc using structure
/*
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];
@AakashCode12
AakashCode12 / Experiment 1 -Data Structures -Stack Using an Array.c
Last active January 12, 2021 17:26
Experiment 1 -Data Structures -Stack Using an Array.c
#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[]);
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()
@AakashCode12
AakashCode12 / library_management_menu_driven_java.java
Last active July 20, 2020 18:52
This a simple java program which can be used as a library management program (Menu driven)
import java.util.*;
class library_manager{
public static String name[]=new String[100];
public static int rollno[]=new int[100];
public static int std[]=new int[100];
public static int nos_books[]=new int[100];
public static int flag,n;
/*
Practical no 2 --parenthisis check
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//variable declarations
int top = -1;
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<string.h>
#define SIZE 100
char stack[SIZE];
int top = -1;
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <dos.h>
#include <graphics.h>
#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)
{
//** 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;
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 :");