#include<iostream.h> #include<fstream.h> #include<conio.h> #include<stdio.h> #include<process.h> #include<ctype.h> class student { char name[30]; int rollno; int marks; public: void input() { cout<<"\nEnter Name : "; gets(name); cout<<"\nEnter Rollno : "; cin>>rollno; cout<<"\n Enter Marks : "; cin>>marks; } void display() { cout<<"\n"<<name<<"\t"<<rollno<<"\t"<<marks; if(marks>=96) cout<<"\tComputer SC"; else if(marks>=91&&marks<90) cout<<"\tElectronics"; else if(marks>=86&&marks<=90) cout<<"\tMechanical"; else if(marks>=81&&marks<=85) cout<<"\tElectrical"; else if(marks>=76&&marks<=80) cout<<"\tChemical"; else if(marks>=71&&marks<=75) cout<<"\tCivil"; else cout<<"\tNone"; } }; void main() { clrscr(); student s; int i, j, n, ch; fstream ofile, afile; char ch1; do { clrscr(); cout<<"\n----MENU----"; cout<<"\n1.Add Record\n2.Show Record" <<"\n3.Exit"; cout<<"\nEnter your choice : "; cin>>ch; switch(ch) { case 1: ofile.open("ST.dat",ios::app|ios::binary); cout<<"\nEnter number of records to be entered : "; cin>>n; for(i=0;i<n;i++) { s.input(); ofile.write((char *)&s,sizeof (s)); } ofile.close(); break; case 2: cout<<"\nName\tRollno\tMarks\tStream"; afile.open("ST.dat",ios::in|ios::binary); while(afile) { afile.read((char *)&s,sizeof (s)); if(!afile) break; s.display(); } afile.close(); break; case 3: exit(0); default: cout<<"\nWrong choice!!!"; } cout<<"\nPress any key to cotinue"; getch(); }while(1); }
Maintaining STUDENT records in a file - C++ Program
Subscribe to:
Post Comments (Atom)
Informative blog ... Thnq for sharing your thoughts with us .. keep going..
ReplyDeleteSelenium training | Selenium training in chennai
Thank you for sharing such valuable information and tips. This can give insights and inspirations for us; very helpful and informative! Would love to see more updates from you in the future.
ReplyDeleteBest QTP Training Center in Chennai
UFT Training in Chennai
performance testing training in chennai
hp loadrunner training
selenium course
selenium Training in Chennai
http://www.mestutors.com/2014/09/maintaining-student-records-in-file-c.html
DeleteThanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information.
ReplyDeletePHP Training in Chennai
PHP Course in Chennai
PHP Training Institute in Chennai
PHP course
PHP Training
This comment has been removed by the author.
ReplyDeleteThanks for sharing,this blog makes me to learn new thinks.
ReplyDeleteinteresting to read and understand.keep updating it.
Cloud computing Training centers in Bangalore
Cloud Computing Training in Nolambur
Cloud Computing Training in Saidapet
Cloud Computing Certification Training in OMR
Nice post. I learned some new information. Thanks for sharing.
ReplyDeleteEducation
Technology
I appreciate you sharing this article. Really thank you! Much obliged.This is one awesome blog article. Much thanks again.
ReplyDeleteBig Data Hadoop Training in Tambaram
Big Data Training in Tambaram
Big Data Hadoop Training in chennai Velachery
Big Data Hadoop Training in kandanchavadi
Big Data Hadoop Training in sholinganallur
Big Data Hadoop Training in navalur
Excellent blog!!!Thanks for sharing. Keep doing more.
ReplyDeleteSpoken English Classes in Anna Nagar
Spoken English Classes in Perambur
Spoken English Classes in Ayanavaram
Spoken English Classes in Anna Nagar West
Spoken English Class in Mogappair
Spoken English Anna Nagar Chennai
Spoken English Class Anna Nagar
Spoken English Classes near me
I have to thank for sharing this blog, it is really helpful and I learned a lot from your blog.
ReplyDeleteData Science Training in Vadapalani
Data Science Training in Chennai
Data Science Course in Chennai
Data Science Training in Velachery
Data Science Training in Chennai Velachery
Data Science Training in Tnagar
Thanks for sharing such a information. It shows your in-depth knowledge. Pls keep updating.
ReplyDeleteHadoop Admin Training in Chennai
Hadoop Administration Training in Chennai
Hadoop Administration Course in Chennai
Hadoop Administration Training
Big Data Administrator Training
Hadoop Administration Course
Hadoop Admin Training Institutes in Chennai
Amazing Post. I am very much impressed with your choice of words. The content showcases your in-depth knowledge in this subject. Thanks for sharing.
ReplyDeleteSocial Media Certification
Social Media Classes
Social Media Marketing Certification
Social Media Marketing Classes
Social Media Marketing Training Courses
Social Marketing Training
Social Media Online Training
ReplyDeleteThanks for sharing the fantabulous post. It gives immense pleasure to read your article. Your post is very thought provoking.
Pega training institutes
Pega training courses
Pega administrator training
Pega testing training
Pega software training
Pega software course
Pega training in Velachery
calculatordemon
ReplyDeleteI really enjoy reading your blog. this info will be helpful for me. Thanks for sharing.
ReplyDeletelucky patcher
lucky patcher apk
luky patcher apk
lucky patcher download
download lucky patcher
lucky patcher for download
dowload lucky patcher
lucky patcher apk download
lucky patcher apk downlaod
download lucky patcher apk
luckypatcher apk download
lucky patcher apk downlod
download lucky pather apk
lucky pacher app
lucky patcher ap
lucky patcher apps
apps lucky patcher
lacky patcher app
apk lucky patcher
lucky patcher app download
download lucky patcher app
lucky patcher download app
download app lucky patcher
app cloner premium apk
lucky patcher games
game lucky patcher
games lucky patcher
lucky patcher game hack app
This comment has been removed by the author.
ReplyDeleteDo you know how to https://www.essayalert.com/2020/05/slogans-to-save-trees.html
ReplyDelete
ReplyDeleteYour Website is awesome, Your Website dazzled us a ton, We have enjoyed your site definitely.
house party at home
birthday party decoration in jaipur
bachelor party Planner
pre-wedding celebration at home
Weekend Party Planner
Anniversary party planner
ReplyDeleteThank you for the Amazing Article will surely Read more of Yours.
IIS University
Best academic environment at university campus
Best girls university in jaipur
Best girls college in Rajasthan
best girls university
girls university
Trade Stocks, Forex, And Bitcoin Anywhere In The World: roboforex login Is The Leading Provider Of Software That Allows You To Trade On Your Own Terms. Whether You Are Operating In The Forex, Stock, Or Cryptocurrency Markets, Use roboforex login Software And Anonymous Digital Wallet To Connect With The Financial World.: roboforex login Is A Currency Trading Company That Allows You To Trade Stocks, Forex, And Cryptocurrency.
ReplyDeleteOctaFx Review helps identify trading opportunities using actions of Market Participants through charts, patterns, and indicators. It seeks to answer the question: "How Will Market Participants React To Current And Future Events?"
ReplyDeleteIs There A Link That You Could Share That Would Give Us A More Detailed Rundown On How Fxtm Review Works ?
ReplyDeleteVT Markets Provides Traders With The Best Possible Trading Conditions—from Low Minimum Deposit Demands To Tight Spreads And Fast Trade Execution Speeds. Read More Here.
ReplyDeleteThat Is Very Interesting, You’re An Excessively Professional Blogger. I Have Joined Your Feed And Sit Up For Searching For More Of Your VT Markets Wonderful Post. Also, I’ve Shared Your Web Site In My Social Networks
ReplyDeleteThanks For All The Education. FCA Brokers
ReplyDeleteForex Broker Nigeria Forex Broker USA Top List Of Forex Brokers By Country. Compare Forex Brokers, Forex Trading Platforms & Forex Indicators.
ReplyDeleteVery Informative blog thank you for sharing. Keep sharing.
ReplyDeleteBest software training institute in Chennai. Make your career development the best by learning software courses.
azure training in chennai
Docker Training in Chennai
devops training in chennai
I liked your content its so usefull for me. i am also a blogger and im also writting this kind of content . please check it and give me your suggestion
ReplyDeleteJaisana