FILE – COPY

#include<stdio.h> #include<conio.h> main() { FILE *f,*f1; int a,i; f=fopen(“filec”,”w”); clrscr(); printf(“Enter The Value: “); scanf(“%d”,&a); fprintf(f,”%d”,a); fclose(f); f=fopen(“filec”,”r”); f1=fopen(“filed”,”w”); fscanf(f,”%d”,&a); […]

Share

DFS :: STACK

#include<iostream.h> #include<conio.h> main() { int a[10],i,j; char ans; clrscr(); i=0; do { cout<<“Enter the value:”; cin>>a[i]; i++; cout<<“Do U wanna […]

Share

DFS :: Reverse List

#include<iostream.h> #include<conio.h> struct node { int n; node *p; }; class link { node *a,*b,*h,c; char ans; public: void create(); […]

Share

DFS :: QUEUE

#include<iostream.h> #include<conio.h> main() { int a[10],i,j; char ans; clrscr(); i=0; do { cout<<“Enter the value:”; cin>>a[i]; i++; cout<<“Do U wanna […]

Share

DFS – DBLCIRCL

#include<iostream.h> #include<conio.h> struct node { int n; node *nxt; node *prv; //<-2->4 }; class link { node *ptr,*h,*tmp; char ans; […]

Share

DFS :: CIRCULAR

#include<iostream.h> #include<conio.h> struct node { int n; node *p; }; class link { node *a,*b,*h,c; char ans; public: void create(); […]

Share