Looked at both links thanks! but it hasnt helped, even with a cout the program is executing a blank program, I cant seem to get the integers from the text file :(
ifstream myfile ("numbers.txt",ios::out);
You are creating an output-based file with an input-based class (ios::out with std::ifstream).
No wonder you're getting no input.
Remove ios::out completely, a default value will be provided.
You are required to produce an application that will inform the user if the weight of ship once the containers are aboard is legal.
To do this you must first read eight numbers from a text file;
the dimensions of the ship cargo hold (length x width x height)
the dimension of a container (length x width x height)
the average weight of a full container
the maximum legal weight of cargo
These numbers should be entered into the file manually before the application runs.