method to add to file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • needhelp101
    New Member
    • Feb 2013
    • 1

    method to add to file

    I am a beginner in programming, and I am trying to write a program which involves linked list. i have to create a method called add_aa( str ). I am reading from a text file. in the text file it just contains the values for str. what I am trying to do is create the method add_aa( str ) and add what corresponds to str from the file. here is what the output should look like. and what i have is very basic. here is what i have
    Code:
     inline void LList:: add_aa(const string _str)
    {
    	cout << "\tp = " << std::hex << p << std::dec << '\n'; 
    }
    I'm thinking using a for statement, but have no idea how to incorporate it
    Attached Files
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Not enough code here to even begin advising you.

    Comment

    Working...