Skip to content

Instantly share code, notes, and snippets.

View AakashCode12's full-sized avatar
🎯
Focusing

Aakash Yadav AakashCode12

🎯
Focusing
View GitHub Profile
void insertBefore()
{
int flagforerrormsg = 0;
if (flagforstart == 0)
{
printf("\nThe Linked List is Empty. Add Elements to the Linked List use this function\n");
}
else
{
printf("\nEnter the data Before which you want to add the Node : ");
@AakashCode12
AakashCode12 / 1d (sorting) | oops .java
Last active August 11, 2020 09:06
The practical -4 | OOPS
import java.util.*;
class onedarray{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int arr[]=new int[5];
for(int i=0;i<5;i++){
arr[i]=sc.nextInt();
}
//sorting program
//CG
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<stdlib.h>
#include<dos.h>
#include<graphics.h>
#include<ctype.h>
//function prototyping
void ellipseplotter(float rx,float ry,float cx,float cy);
@AakashCode12
AakashCode12 / Linked List --practice-Data Structure.c
Last active August 11, 2020 12:03
### Till now completed - creation,display,insert at begining and end
#include<stdio.h>
#include<stdlib.h>
//todo structure
struct node{
int data;
struct node* next;
};
struct node *head, *newnode, *temp;
@AakashCode12
AakashCode12 / Practical-4 || Data Structures || Postfix Evaluation Using Stack.c
Created August 10, 2020 12:30
Practical-4 || Data Structures || Postfix Evaluation Using Stacks
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define max 100
int st[max],top = -1;
//todo Function prototypes
void push(int );
int pop ();
@AakashCode12
AakashCode12 / Practical-3 || CG || Circle Drawing Algorithm.cpp
Last active August 10, 2020 08:11
Practical-3 || Computer Graphics
#include<stdio.h>
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<stdlib.h>
#include<dos.h>
#include<graphics.h>
#include<ctype.h>
void circleplot(int r,int cx,int cy){
class DateMethod
{
int dd,mm,yy;
public DateMethod(){
dd=mm=yy=0;
System.out.println("This is the default constructor");
}
public DateMethod(int d,int m,int y){
dd=d;
mm=m;
class addition
{
public void add(int x,int y)
{
System.out.println(x+y);
}
public void add(double x, double y)
{
System.out.println(x+y);
class cmd_line{
public static void main(String args[]){
int a=Integer.parseInt(args[0]);
int b=Integer.parseInt(args[1]);
//! condition example
System.out.println("The condition Example");
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 :");