istringstream et std::find

istringstream et std::find - C++ - Programmation

Marsh Posté le 14-05-2009 à 18:56:27    

Hi,
 
Quel est le type retourné par find dans l'exmple suivant , string? char? ?
 
istringstream s; //contient un fichier
s::iterator res = std::find(s.begin(),s.end(),string("NOK" ));
 
Merci


---------------
je connais tout, je ne sais rien, seule certitude, à vouloir trop on finit par tout perdre.
Reply

Marsh Posté le 14-05-2009 à 18:56:27   

Reply

Marsh Posté le 14-05-2009 à 19:13:48    

istringstream::iterator

 

http://cplusplus.com/reference/algorithm/find


Message édité par Elmoricq le 14-05-2009 à 19:15:03
Reply

Marsh Posté le 14-05-2009 à 20:13:33    

et un istringstream::iterator it; *it est de quel type ? char std::string?

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed