I have a certain std :: list of some types, for example This does not work because it is not a file. How can I get the price at which I am pointing to it? Just use a dereference operator: Note also, With C ++ 11 you can use category-based for: Or you can also use list & lt; FILE & gt; I need every access to all the values stored in it, for example:
list & lt; FILE & gt; :: iterator iter; (IARR = Preferences :: OpenFD.bizen); IARAR! = Preferences :: OpenFD.and (IRAR ++) {Falcos (ITR); }
fclose (* Ether); // ^ << / code>
fclose a
FILE * , not
FILE is expected.
For
(Auto & Preferences: Preferences :: OpenFD) Falcos (AMM);
std :: for_each :
std :: for_each (preference :: OpenFD) .begin), Preferences :: OpenFD.and (), Ficlos);
No comments:
Post a Comment