PROGRAM TO FIND GREATEST AMONG THREE NUMBERS

/*PROGRAM TO FIND GREATEST AMONG THREE NUMBERS*/ #include<iostream.h> #include<conio.h> void main() { float a,b,c; clrscr(); cout<<“Enter any three numbers: “; cin>>a>>b>>c; if((a==b)&&(a==c)) cout<<“Numbers are equal.\n”; else { if((a>b) && (a>c)) …

PROGRAM TO COPY ONE FILE INTO ANOTHER FILE

/*PROGRAM TO COPY ONE FILE INTO ANOTHER FILE*/ #include<fstream.h> #include<iostream.h> #include<iomanip.h> #include<stdlib.h> #include<conio.h> void main() { clrscr(); ofstream outfile; ifstream infile; char fname1[10],fname2[10]; char ch; cout<<“Enter a file name to …

PROGRAM TO PERFORM INPUT AND OUTPUT OPERATIONS ON FILES

/*PROGRAM TO PERFORM INPUT AND OUTPUT OPERATIONS ON FILES*/ #include<iostream.h> #include<fstream.h> #include<conio.h> #include<stdlib.h> class file_io { ofstream outfile; char fname[10],line[100],ch; int i; public: void input(); void output(); }; void file_io::input() …