I have a promblem with following case : i have a properties.txt that included:
10 Napier St.
47 Darkien Cl.
i want to write: On start-up, the program is to prompt the user for the property listings filename (the sample file provided is called properties.txt). The file contains the street address, suburb and price (in whole dollars) of each property listed by the agent. Once opened, the program is to read the data for each property from the file into a single array of structs. thanks i am stuck with that promblem to do other case .. what should i do ?
Jump to Post
First declare a structure that contains elments for street address, suburb, and price.
Then useing ifstream open and read the file.
I could write the code for you, but I won't. I wouldn't want to deprive you of the joy of doing that yourself :)
All 7 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.