C++ program homework help?

Project:Write any C++ course that declares a multitude of 10 integer components and calls three
capabilities to adjust the assortment.The initial function initializes the many array
elements to absolutely no; it has a void return-data-type and also two integer formal
parameters ( that array and the quantity of elements).

Cost-free function states values from your file (lab6.dat) in addition to stores them in the
range; this function is known for a void return-data-type and also two integer formal
parameters (the range and the quantity of elements).

The 3rd function dividends nothing and also has not one but two integer formal parameters
(the assortment and the quantity of elements); it components the array into a file employing the
following format:

arrayNameindex = value

As a final glimmer regarding hope, then look at this…

Within lab6.dat….
1
2
3
4
5
6
7
8
9
100
//———-

#include
#include
employing namespace an std;

useless func1(int *num, int size)
for(int i=0; i<size; i++)
*(num+i)=0;

useless func2(int *num, int size)
ifstream report;

report.open(“lab6.dat”);
for(int i=0; i<size; i++)
file>>*(num+i);

report.close();

useless func3(int *num, int size)
ofstream report;

report.open(“someotherfile.dat”);
for(int i=0; i<size; i++)
file<<*(num+i)<<endl;

report.close();

int main()

const int size=10;
int numsize;

func1(num, size);
func2(num, size);
func3(num, size);

system(“pause”);
returning 0;

const int SIZE = 12;
int myArraySIZE;

//might not need these kinds of following lines
useless myManipFunction( int, int ); //can’t keep in mind which PL it was,
useless myReadFunction( int, int ); //where you should define that functions
useless myWriteFunction( int, int ); // I think it is C hmmm

useless main()

call very first function and also pass in the array and also size variables
within function:
for each element within array established value to zero

call next function and also pass in the array and also size variables
within function:
amenable file with regard to reading
as you move file is just not at finish of report read line
for each element within array established current range element benefit to latest read line value (I’m presuming the archive has various lines)

call Third function and also pass in the array and also size variables
within function:
for each element within array create value to file

My tips – Create a plan.Work upon each function one by one.If you get the first i.e.initializing and then atleast make an effort to do cost-free, we will see if we are able to help.
BTW, will your teacher be okay with it

Okay…So what on earth are an individual having problem with exactly

We’ll not accomplish your homework for yourself….

http://www.computerfoxdesign.com
http://www.computerfoxdesign.com/how-to
foxcomputerfoxdesign.com

asdf.

Leave a Reply