C++ questions

1.) Let's say I have a list: apple1, apple2, apple3, apple4, apple5

Does anyone know how to display the txt file using c++?
Does anyone know how to insert apple6 into the text file using link list and show the whole list including apple6?

  1. traditionally you would say

cout << list;

or similar.

  1. to add something you would do

list+="apple6";

However if you wanted to go down the STL route you would have a whole heap of fun.