I am suppose to read in 40 different numbers from a file named 'input file'.I am also suppose to store these numbers in a array in the way they are read in. I need help writing this code please. I know you use infile to read in, but how do you read and store in to a array.
I dont want you to write the code. I just need you to explain how i need to go about it. Like i said i know how to read in the numbers but im not sure how to do it when i have to put them into a array.