Binary file program
Program Code
#include
#include
#include
using namespace std;
class theOriginals{
char name[500];
int saireline;
public:
theOriginals(){
strcpy(name,"enter name of Original");
saireline =1000;}
theOriginals(char name,int saireline){
strcpy(this->name,name);
this->saireline=saireline;
}
void whichoriginal(){
cout<<"this is "<<name<<" Mikelson and its sires are about "<<saireline<<endl;
}
};
int main(){
theOriginals original("elijah",4003);
fstream file("originals",ios::binary|ios::in|ios::out|ios::trunc);
if(!file.is_open()){
cout<<"Error occured while opening the file"<<endl;
}else{
file.write((char)&original,sizeof(theOriginals));
file.seekg(0);
theOriginals vamp("klaus",100000);
vamp.whichoriginal();
original.whichoriginal();
}
}
Made in C++ language
Made in compiler Codeblocks
Leave Binary file program to:
Read more #busy posts
Best Posts From Emperor Sabi
We have not curated any of learnandgrow's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Emperor Sabi
- Thursday freewrite__ Prompt: cityscape
- ZapFic Monday - Prompt: engagement in 240 character or less
- Poser Pro 11 - Discover the Art of the Human Form with Poser
- YELLOW PAGES SPIDER - GET THOUSANDS OF LEADS ON DEMAND
- MindGenius Business - Creating complex business idea maps, strategies,plans & more
- Quickbooks Pro - software for managing businesses effectively and efficiently
- Autodesk Revit MEP - Best for designing 2D structural and 3D model of a building
- eDrawings Professional - The Easiest Way to Share 3D Data Across CAD Environments
- GiftedMotion - GiftedMotion is a free and easy & open source GIF animator
- Blumentals WeBuilder - fast, intelligent & all in one code editor for web developer