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); */
I started preparing an alternative cryptocurrency and I am way over my head. I would like help in making modifications to the open source files and then help with deployment. I wil
It tells the compiler that a variable or a function exists, even if the compiler hasn't yet seen it in the file presently being compiled. This variable or function may be distinct
C o n t r o l S t r u c t u r e s I t i s o f t h r e e t y p e s: 1 . S e qu e n c e s t r u c t u r e 2 .
Describe about the container class. -Class to hold objects in external storage or memory. It acts as a generic holder. - It has a predefined behaviour and a known interface.
Prepare a MT4 EA to clone MT4 Trades to a Binary Options Platform Project Description: I want an EA that clones MT4 Trades to Globaltrader365, GT Options and if possible othe
Program to sort a range of numbers with Insertion: /* define variable */ const int max=29000; int list[max]; FILE *fp; clock_t start,end; char any1[8];
how we write decision tables, flowcharts,pseudocode,and algorithm in result management system
In this sub-task will you implement three functions for the final three function prototypes that will do exactly the same as the three functions that you have just written. This ti
Program to design list in c: Write a program in c to insert the values in list void main() { int i=0; char a[20]; clrscr(); printf("Enter the line\n");
Ask question #Minimum 1Loan negotiation is usually not a straightforward task. A type of loan is the discount installment loan. This type of loan has the following characteristics.
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