<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hola a todos, </DIV>
<DIV>1. leyendo otros manuales de c++ vi que usan esta libreria que en el curso de c con clase no la muestran para nada.</DIV>
<DIV> </DIV><FONT face=MacUSADigital-Regular size=1>
<DIV>#include <string></DIV>
<DIV> </DIV>
<DIV>2. tambien la funcion "getline" no se la muestra en el curso como funcion para la entrada de datos desde el teclado. como en este ejemplo combinada con "cin".</DIV><PRE class=example><FONT face="bookman old style, new york, times, serif" size=2>string passwd;

getline(cin, passwd, '\n');
if(passwd == "xyzzy")
{
    cout<<"Access allowed";
}</FONT></PRE><PRE class=example><FONT face="Bookman Old Style" size=2></FONT> </PRE><PRE class=example><FONT face="bookman old style, new york, times, serif" size=2>3. Luego esto de "vector<string> Name;" esta en un video de c++ en un link:</FONT></PRE><PRE class=example>  <A href="http://www.youtube.com/watch?v=dPAUYlvH_Ic&feature=related">http://www.youtube.com/watch?v=dPAUYlvH_Ic&feature=related</A> </PRE><PRE class=example><FONT size=3>es este:</FONT></PRE><PRE class=example><FONT size=3>#include <iostream><BR>#include <conio.h><BR>#include <cstring><BR>#include <string><BR>#include <vector><BR>#include <cstdlib></FONT></PRE><PRE class=example><FONT size=3>using namespace std;</FONT></PRE><PRE class=example><FONT size=3>int main(){</FONT></PRE><PRE class=example><FONT size=3> vector<string> Name;<BR> string        
 name;<BR> char           *ptostring, *pit;<BR> <BR> <BR> cout << "Please enter your name: ";<BR> getline(cin, name);          // Carlos pepe palitos</FONT></PRE><PRE class=example><FONT size=3> ptostring = new char[name.size()+1];<BR> strcpy(ptostring, name.c_str());<BR> <BR> pit = strtok(ptostring, " ");</FONT></PRE><PRE class=example><FONT size=3> while(pit !=  NULL){<BR>  Name.push_back(pit);<BR>  cout << pit << endl;<BR>  pit = strtok(NULL, " ");<BR> }</FONT></PRE><PRE class=example><FONT size=3> cout << endl;<BR> cout << "vector name: " << endl;</FONT></PRE><PRE class=example><FONT size=3> for(int i=0; i< Name.size(); i++){<BR>  cout << Name[i] << endl;<BR> }</FONT></PRE><PRE
 class=example><FONT size=3> <BR> cout << Name.size() << endl;</FONT></PRE><PRE class=example><FONT size=3> getch();<BR> return 0;<BR>}</FONT></PRE><PRE class=example><FONT size=3>bueno, q es Name.push_back, strtok() ???</FONT></PRE><PRE class=example><FONT size=3>estos puntos no son c++ o no estan considerados en el curso de "c con clase" ? </FONT></PRE><PRE class=example><FONT size=3>gracias de antemano.</FONT></PRE><PRE class=example><FONT size=3>listerocpp.</FONT></PRE></FONT></td></tr></table><br>



      <hr size=1><br><font face="Verdana" size="-2">¡Buscá desde tu celular!
Yahoo! oneSEARCH ahora está en Claro<br>
http://ar.mobile.yahoo.com/onesearch</font>