8 like 1 dislike

Please write a program generate ten random integers and store into a file.

Please use code snippet to insert your code

p/s: Your edit history will be recorded and counted to final grade!

asked in File processing by (11.8k points)
reshown by | 44 views
0 1
Called for Help
0 0
Called for Help
0 0
Called for Help
0 0
Called for Help

22 Answers

0 like 0 dislike
Hidden content!
** * ****** ***
* * * * ** ** ****
*** * * *** **
* ** **** *** **
*** ** **
**
**

** * * * ** ** **** ** **

* * **

***** *



* * ** ** * * ** ** * ** * *** * * ** **

*

**

* ** *

** * * * *



****



* *** ***

*
* ** * * * * ** ** * * *

*
answered by (10.8k points)
0 like 0 dislike
Hidden content!
*** * * * * *
*** * * **
*** *** ** ** * ** *

#include<ctime>

using namespace std;

int main()

{
** ** ** **** *** *** ***** * * ***** * ** * ** ***
* ** ** ** * * * * ** ** i, a[10];
* ** *** ** **** * *
* * * * * *** * * **
** ** ** ** * ** * * * *** *** ** ** **** << "File could not be opened" <<endl;
* ** * ** * * * * ** ** * * * **** **
** * * * * * *** ***
* ** *** * * * * * **** **********
****** *** ** * *** ** ****** * **
* * ** * ***** *
* * * * * * ******* ** ***** ******* *** * ** *** ** ***
* * **** * * * ** **** *
** * ** * ***** * ** *** * * *** *
** * * * * *** ** **
* *** * *** * ** * * * * << a[i] << " ";
* ** * * ** * ***** **

}
answered by (-134 points)
0 like 0 dislike
Hidden content!
********* ** ** *
** **** *
* ** ** ** * ** *
** ** * ** ****

using namespace std;



int main(void)

{
* * ****** * * * * * txt[10]={1, 4, 6, 3, 45, 6, 87, 9, 5, 3};
** **** * ** ** * * ** i=0;
* * ** * ** ** * * * **** * **** * * ** *** ios::out);
** * * * * * * ** * * ** **** * * *
* ** ** * ** * * * *
* * ***** * * *** * * * ** *********** ***** * * **
** * ** * * ** * * ** * * * *** * * *
* * *** **** * * *** * ****
** * * ** ** *** ** * * * << "file..." << endl;
* *** * * * **** * *** ***** * * * *


** * * **** * * * * * * * 0;

}
answered by (-335 points)
0 like 0 dislike
Hidden content!
** * * ** * ** * *
* **** ** *
*** ** ** ** * **
* ** * * * * ***
* * *** *
*
* *
* *** ** *
* a **
*** *
* * *** * * **** ** *** * * ** **
* *****
* * * * * *** ****** * * *** *** * *

*
* * * * * *
* c = **
* * ** * ** * * * ** * **
* * ** *

* *
*** ** * **
*
}
answered by (24 points)
0 like 0 dislike
Hidden content!
#include * * *** * *

#include * * *

#include * * ** ***

#include * ** * * ** *

#include * ** * * *

#include ** * * * ** *

using namespace std;



int main()

{
* * * * **** *** *** * * * * ** ** ** ** ** ** ;
* * * * * * * ** ****** * ***
* ** * * **** **
* *** *** ** * * **** * ** * **** *** * * *** ** *** *** * ***** "File could not be * *** *** ;
* ***** * * * *** ** * ****** *** * ******** ** * *** ;
*** ** * * ** *** * ******* *


** * * * ** * ** * ** a ;
* *** *** * * * ** * * ** time(NULL) );
** ** * * * * * * *** int i = 0; i < 10; i++ )
* ** * ** ** *
** * * *** * ***** * ***** ** * * * * * ** *** = (rand()%901) + 1 ;
** * ** * * * * * ** * * *** *** * ** * ** ** * * *** * ** a ** ' ' * ** *** endl;
** *** *** ** * * * * *


* * * * * * ***** ** ** * * * inputed * * *** ;

}
answered by (-103 points)
0 like 0 dislike
Hidden content!
* * ** *** ** * * ***
* ** * ** * *****
* * ***
** * std;



int * *

{
* ** *** * ** * *** **
** ** *** *
* (int i = 0; i != 10;
* * ** ******* * * ** ***** *
* 0;

}
answered by (-45 points)
0 like 0 dislike
Hidden content!
* * ** ** * * *
** * **** * **
* * ** *** ***
* * * ** * *
* * * *** std;

int *
{
* ****** * * * * * *
** **
int i;
*** ** * *** *
{
* ** * * * **** * **
}
}
answered by (-144 points)
0 like 0 dislike
Hidden content!
*** * ** ****
** * * * * *** *
** ** **** *
* ** ** *** * **
** * ***
*
** ** *** * ****

* * * *
* i *
* **** * *
{
x * ** ** ** ** *
}
*** *
* **
}
answered by (-434 points)
0 like 1 dislike
Hidden content!
** * ** * ** *
** ** * **** *
* * ******* * * *
* ** * ** * *** *
* * * ** *


** * *

int * * {


* ** ** * ** ** *** *** * *** ** *****



if * * * *

{
** * **** * ***** * ** not be ** * * * *** * * * ** *
** *

}
* *** * * * ** * ** * ** ** * * * * * * * * ** *

int c, n;



for (c = 1; c * * 10; c++) {

n = * % 100 + 1;
** *** **** *** ** ** * **



}


* 0;

}
answered by (-605 points)
0 like 0 dislike
Hidden content!
** * ** ** *** *
** ** * * *** * **
* * ** * *** *
* *** ** ** *
*** ** *
***
{
i, *

*** * **** * ** ** ** ** *
*** * *

** * * * *
= *
* * ** ** * * * * ** * ** **
}

* * 0;
}
answered by (-95 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.68.65.156
©2016-2018

Related questions

7 like 1 dislike
17 answers
asked Jun 15, 2016 in File processing by thopd (11.8k points) | 52 views
8 like 1 dislike
32 answers
7 like 1 dislike
33 answers
8 like 1 dislike
43 answers
7 like 0 dislike
32 answers
2,974 questions
57,433 answers
29,089 comments
938 users