Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Program is to store marks and name, roll no in a file:
class stud
{
int rno;
char name[20];
int m1,m2,m3;
public:
void accept()
cout<<"enter the roll no. : ";
cin>>rno;
cout<<"enter the name : ";
gets(name);
cout<<"enter marks of 3 subjects : ";
cin>>m1>>m2>>m3;
}
};
void main()
clrscr();
stud s;
s.accept();
ofstream a ("stud.dat" , ios::binary | ios::app);
a.write ( (char *) &s , sizeof(s) );
a.close();
It''s that spooky time of year when the dead walk the Earth, things go bump in the night, and the Centers for Disease Control (CDC) recognizes the need for zombie preparedness (
what is c language
one of the segments is showing compilation error...
Differences between a pointer and a reference 1. A reference must always point to some object where as this restriction is not imposed on a pointer. e.g. int *pi = 0;
What are P r im a r y D a t a T y p es? Integer can be defined according to the size of the data and it can be modified further by using keyword unsigned and si
Using a Friend Using a friend function is quite easy. The following example explains a friend function to access members of two classes. class Bclass;
Explain some String Oriented Library Functions? To make simpler string processing we can use special string oriented library functions. Mainly the C compilers include library f
how can I find the GCD of 2 given numbers using Euclidean Algorithm ?
Problem : Change to palindrome A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your ta
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd