T
tyeung168
I am taking a C++ class in college and having problems completing last
week's homework. Any help is greatly appreciated.
The program is to read from a filing containing stock trades. Here is
an example:
CSCO 200 92.5 100.3
QQQ 250 24.52 21.52
DELL 600 25.45 27.52
The fields are stock name, number of shares, purchase price and
current price. These field should be stored as arrays. After
processing the file the function should send number of records back to
main. The program should be written regardless of number of lines in
the file.
Here is the line from main: numrec = readData(stockname, numShares,
buyPrice, currPrice);
I don't know how to complete the function to complete this.
Again any help is greatly appreciated.
week's homework. Any help is greatly appreciated.
The program is to read from a filing containing stock trades. Here is
an example:
CSCO 200 92.5 100.3
QQQ 250 24.52 21.52
DELL 600 25.45 27.52
The fields are stock name, number of shares, purchase price and
current price. These field should be stored as arrays. After
processing the file the function should send number of records back to
main. The program should be written regardless of number of lines in
the file.
Here is the line from main: numrec = readData(stockname, numShares,
buyPrice, currPrice);
I don't know how to complete the function to complete this.
Again any help is greatly appreciated.