HASH.C
#include
#include
int s0[10],s1[10],s2[10],s3[10];
int sk,mod,a,flag;
int c0=0,c1=0,c2=0,c3=0;
main()
{
int ch;
clrscr();
do
{
printf("Enter
your choice:\n");
printf("1.Search
the value\n2.Insert the value\n3.Delete the value\n4.Display\n5.…[ More ]
Ronron.c
#
include
main()
{
int c,i,q,k,l,j=0;
int a[100];
printf("How Many Process U Have To Insert\n");
scanf("%d",&c);
for(i=1;i<=c;i++)
{
printf("Enter The prcess P %d",i);
printf("----");
scanf("%d",&a[i]);
printf("\n");
}
printf("Enter Quantum Time\n");…[ More ]
Producer & Cosumer.c
#include
#include
# define MAX 5
int queue[MAX];
int in = -1;
int out = -1;
int n;
void produce();
void consumer();
void display();
int main()
{
int x;
while(1)
{
printf("1.produse\n");
printf("2.consumer\n");
pri…[ More ]
Producer with Consumer.c
#include
#define buffer_size 5
int a[buffer_size];
int in=0;
int out=0;
int main()
{
int ch;
while(1)
{
printf("\n
1.producer\n 2.consumer\n3.display\n4.exit\nEnter ur choice:");
scanf("%d",&ch);
switch(ch)
{
case
…[ More ]
//……………Program on Memory.c……..//
#include
#include
int main()
{
int
hno,i,hsize[10],pid,psize,ch,x;
int large=0;
printf("Enter
the no of holes:");
scanf("%d",&hno);
for(i=1;i<=hno;i++)
{
printf("\nEnter the hole size for hole
%d:",i…[ More ]
//……………..Program on Rrobin.c………..//
#include
int main()
{
int
i,n,q,j;
printf("Enter
the no. of process you want:-");
scanf("%d",&n);
int
b[n];
for(i=1;i<=n;i++)
{
printf("\nEnter
burst time for p%d=",i);
scanf("%d",&b[i]);
}
…[ More ]
//………….Program on Sjf.c…………//
#include
#include
main()
{
int
i,j,k,l,m,n,h,bt[10],pid[10],t[10];
printf("\n
How many processes u want to enter:");
scanf("%d",&n);
for(i=0;i
…[ More ]
//……..Program on Sjf2.c…….//
# include
#define max 500
main()
{
int
no,i,k=0,l=0,j=0,ax,bx;
int
a[max+1];
int
b[max+1];
// a[0]=0;
printf("Enter
the number of Processes :");
scanf("%d",&no);
for(i=1;i<=no;i++)
{
printf("Enter
The prces…[ More ]
Program on FIFO.cpp
# include
int MAX = 5;
int n[5];
int front = -1;
int rear = -1;
int main()
{
int choice;
int a=1;
while(a)
{
printf("1.producer\n");
printf("2.consumer\n");
printf("3.Display\n");
printf("4.Quit\n");
printf("Enter your choice : ");
s…[ More ]
//…..Program On Count.Cpp…….//
#include
#include
#include
class man
{
int no;
static
int count;
public:
man()
{
count++;
cout<<"\n
The no of objects created are:\t"<
…[ More ]
//......Program On Bank Account.Cpp……..//
#include
using namespace std;
int choice;
double balance = 10000;
class account
{
char name[30];
int acc_no;
int acc_type;
public:
double
bal;
void
customer()
{
cout<<"\n\n\tEnter
Your Na…[ More ]
//………Program On Inheritance.Cpp…….//
#include
#include
#include
using namespace std;
class person
{
protected:
int
code;
public:
char
name[30];
void
getdata();
int
getcode(void);
};
int person::getcode()
{
cout<<"Enter Your Code: …[ More ]