No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
I hope i answer your question right... "How do I read a 'line', not a word from a text file?" There needs more to this code, just a base outline of getline. [CODE] #include <string> // library that can is used string ____; //delcare varible name getline(fstream name, string name); …
I need to string names from a text file which the name will output no more than 29 characters and no commas. My output displays no commas, but i cant figure out how to count the characters and output no more than 29 characters in the name. I think I …
[CODE]void GetData(fstream& In, string& Name, double& Acres, int& Jars); /*Pre: The stream in is open for input. Post: Returns the name of less than or equal 29 characters, acres and number of jars. */[/CODE] I am using this function to pull names from an infile. The first line of the …
The End.
trcartmill