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
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 : "); |
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.*; | |
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 |
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
//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); |
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 | |
struct node{ | |
int data; | |
struct node* next; | |
}; | |
struct node *head, *newnode, *temp; |
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<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 (); |
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> | |
#include<ctype.h> | |
void circleplot(int r,int cx,int cy){ |
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
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; |
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
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); |
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
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"); |
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; | |
public class Employee { | |
int empid; | |
String name; | |
float salary; | |
public void getInput() { | |
Scanner in = new Scanner(System.in); | |
System.out.print("Enter the empid :"); |