I tried to change things to use ofstream and ostream as suggested and I came up with nothing that works. I better tell you guys "this is not homework". When I ask for help it's usually to do something beyond the homework required. I don't code for school. I code for me. I write FASM and MASM since 1999 and never saw big words like ofstream and ostream. Just to give you an idea of how we work with string at processor level and this is what those C++ lib do under the hood without our knowledge::
Code:
mov edi, HTML.Day_S ;Destination Ptr
mov esi, Day.Wk ;Source Ptr (Array of Days)
xor eax, eax
mov ax, [Time.wDayOfWeek] ;0 <= eax < 7
add esi, eax ;esi =+ eax * 3
add esi, eax ; Indexes the Array
add esi, eax
mov ecx, 3 ;3B per Day String
cld ;Copy Left to Right
rep ; (esi++, edi++)
movsb
Anyway, I now like C++ "for me" and this is something I always wondered about how to do in C++ and I need to see how it is done. It will answer many other questions for me just by looking at the code (based on the VERY FEW changes you can offer for the original code I posted).
Could someone show me the syntax to make this work as I indicated in my first post. As you see, I came this far own my own with vector and it's FAR beyond what is required for class ... It's only required for me.. Class section "strings" only lead me to ask the more important question that even Harvard may NEVER get around to doing in a hundred years.
Btw: Thanks auralius, that's the best clue I got and I been trying everthing I can think of instead of being a sitting duck trying to use ifstreams. Anyway, it seems like a fair question to me to ask this forum.