#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
IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.
DeleteJavaScript Online Training in India
JavaScript Training in India
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
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
ufc-256
DeleteThis comment has been removed by the author.
ReplyDeleteWell said!!! It is very useful for us. Thanks for your wonderful blog.
ReplyDeletecloud computing courses in Coimbatore
Cloud Computing Courses
Cloud Computing Training in Coimbatore
Cloud Training
Cloud Computing Certification
This technical post helps me to improve my skills ,thanks for this wonder post I expect your upcoming blog, so keep sharing...
ReplyDeleteSpoken English in Chennai
Best Spoken English Institute in Chennai
English Coaching Class in Chennai
Best English Coaching Center in Chennai
English Coaching in Chennai
English Coaching Centre in Chennai
English Courses in Chennai
English Coaching in Chennai
Thanks 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
Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting.
ReplyDeletePhotoshop Training Classes in Chennai
Best Photoshop Training in Chennai
Photoshop Course Training in Chennai
Photoshop Course
Photoshop Classes
Photoshop Training
Photoshop Classes for Photographers
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
I found some useful information in your blog. It is really useful for me. Thank you for sharing with us.
ReplyDeleteOracle DBA Training in Chennai | Oracle DBA Course in Chennai | Best Oracle DBA Training in Chennai | Oracle DBA Training in Adyar | Oracle DBA Training in Velachery | Oracle DBA Training in Tambaram
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
whatsapp group links
ReplyDeleteThanks for sharing valuable information.It will help everyone.keep Post.
ReplyDeleteKerala Lottery guessing
calculatordemon
ReplyDeleteog youtube
ReplyDeleteALL Type Latest Premium Course Available For Download Free Like Development, design,marketing,Learning Course , And Latest Tips & Tricks Sharing
ReplyDeleteAll Latest Premium Course Download Free
Development Course Download Free
Digital Marketing Course Download Free
Hacking Course Download Free
Latest Tips & Tricks
Php Projects Free Download
I 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.
ReplyDeleteReally i found this article more informative, thanks for sharing this article! Also Check here
ReplyDeleteDownload and install Vidmate App which is the best HD video downloader software available for Android. Get free latest HD movies, songs, and your favorite TV shows
Vidmate App Download
Vidmate apk for Android devices
Vidmate App
download Vidmate for Windows PC
download Vidmate for Windows PC Free
Vidmate Download for Windows 10
Download Vidmate for iOS
Download Vidmate for Blackberry
Vidmate For IOS and Blackberry OS
Sach janiye
ReplyDeleteMrinalini Sarabhai
Sandeep Maheshwari
dr sarvepalli radhakrishnan
Arun Gawli
Rani Padmini
Sushruta
Harshavardhana
Nanaji Deshmukh
Tansen
Your Website is very good, Your Website impressed us a lot, We have liked your website very much.
ReplyDeleteWe have also created a website of Android App that you can see it.
http://damodapk.com/
Your Website is very good, Your Website impressed us a lot, We have liked your website very much.
ReplyDeleteWe have also created a website of Android App that you can see it.
http://infotodaypk.com/
Do 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
UNIQUE ACADEMY FOR COMMERCE, an institute where students enter to learn and leave as invincible professionals is highly known for the coaching for CA and CS aspirants. One of the India’s best academy with the finest faculty aims to provide quality education for a better future. It is recognized as the best online classes for Company Secretary Course.
ReplyDeletecs executive
freecseetvideolectures/
UNIQUE ACADEMY
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.
ReplyDeleteसबसे बेस्ट दोस्ती शायरी In Hindi
ReplyDeleteLogin Your exness login Account To Read The Latest News About The Platform.s
ReplyDeletehi thanku so much this infromation thanku so much
ReplyDeletebluehost-discounts
milesweb-review
OctaFx 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?"
ReplyDeleteLogin Your OctaFx Review Login Account. Read In Depth Meta Fx Global Login Review.
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
ReplyDeleteIf You Are Interested In Trading Forex With A Broker, You Must Read This VT Markets . We Will Tell You About Their License, Regulation, Bonuses, Spreads, And Much More. Read The Full VT Markets.
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