13.01.2015 Views

Pensar en C++ (Volumen 1) - Grupo ARCO

Pensar en C++ (Volumen 1) - Grupo ARCO

Pensar en C++ (Volumen 1) - Grupo ARCO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

✐<br />

✐<br />

✐<br />

“Volum<strong>en</strong>1” — 2012/1/12 — 13:52 — page 510 — #548<br />

✐<br />

Capítulo 16. Introducción a las Plantillas<br />

while(getline(file, line))<br />

textlines.push(new string(line));<br />

int i = 0;<br />

// Use iterator to print lines from the list:<br />

Stack::iterator it = textlines.begin();<br />

Stack::iterator* it2 = 0;<br />

while(it != textlines.<strong>en</strong>d()) {<br />

cout c_str()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!