CPP program to delete a record from a binary file

Delete a record from a binary file is one of the most useful operations on binary file but unfortunately, there is no direct command to do the needful. So we have to take help of a temporary file to remove a record from a binary file.

List list implemented Stack

/* Program to display list list implemented stack made by : rakesh kumar */ #include<iostream> #include<conio.h> using namespace std; struct node{ int data; node *ptr; }; class stack{ node *x,*y,*temp; public: stack(){ x=NULL; } void push(); void pop(); void show_data(); }; void stack::push(){ if(x==NULL) { x = new(node); cout<<“Enter value :”; cin>>x->data; x->ptr=NULL; } else […]