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!
Write in a file:
void main()
{
int i,j,k,l,list[1000];
FILE *fp;
char any[8];
cout << "Enter a file name\n";
cin >> any;
fp = fopen(any,"wb");
for(j=0;j<50;j++)
for(i=0;i<200;i++)
k = rand() % RAND_MAX;
fwrite(&k,sizeof(int),1,fp);
}
/*fclose(fp);
fp = fopen(any,"rb"); */
i = 0;
while (fread(&l,sizeof(int),1,fp) != 0)
list[i] = l;
i = i + 1;
fclose(fp);
for (i=0;i<50;i++)
cout << list[i] << '\n';
/*for(i=0;i<900;i++)
k = list[i];
fp = fopen("ggg.txt","wb");
for(int a=1;a<900;a++)
int v = list[a];
int b = a;
while(list[b-1] > v)
list[b] = list[b-1];
b = b - 1;
list[b] = v;
for(i=0;i<900;i++)
fclose(fp); */
Hi i want to join as a expert .
Question: (a) Explain a linked list. (b) Describe the three different types of linked list with the help of diagrams. (c) Give two advantages and two disadvantages
A: In C++, the definition of NULL is 0, thus there is only an aesthetic difference. I prefer to ignore macros, so I employ 0. Another difficulty with NULL is that people sometimes
- Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulati
Is it legal for a member function to say delete this? A: As long as you're cautious, it's OK for an object to delete this. Here's how I define "cautious": You have to be a
Explain high-order and low-order bytes. - Numbers are written from left to right in decreasing order of significance. In the same way, bits in a byte of computer memory can be
Multidimensional Arrays - Every dimension is specified in separate brackets e.g. int arr[4][3]; This is a two-dimensional array with 4 as row dimension and 3 as
C Program for DIVISER void main() { int result,number,min; clrscr(); printf("ENTER THE NUMBER="); flushall();
I would like to get you to collaborate in my project. We want a C programmer to Develop applications for Windows, the first application may be an Instant messenger encrypted in a w
write a program to find the area under the curve y=f(x) between x=a & x=b
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