Question: I need help with this lab cant get more the 7 5 % because it cant find fin.open ( ) in program and my instructor

I need help with this lab cant get more the 75% because it cant find fin.open() in program and my instructor said this
Hope this helps.
// Declare variables here
string flowerName, growing condition; // Incorrect
// Missing string and name/condition cannot be in the same string!
ifstream fin;
Look at line 5 of the directions below as sun or shade is a key to the proper string.
3.Write the C++ statements that will open the input file flowers.dat for reading.
4.Write a while loop to read the input until EOF is reached.
5.In the body of the loop, print the name of each flower and where it can be grown (sun or shade).
6.Save this source code file in a directory of your choice, and then make that directory your working directory.
7.Compile the source code file Flowers.cpp.
8.Execute the program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!