class String en c++

class String en c++ - C++ - Programmation

Marsh Posté le 13-10-2005 à 12:34:30    

salut je cherche la Bibliotheque String , ou je le trouve  
 
 
marci d'avance

Reply

Marsh Posté le 13-10-2005 à 12:34:30   

Reply

Marsh Posté le 13-10-2005 à 12:41:12    

std::string [spamafote]
 
installé avec ton compilo
 
#include <string>
 
et o'boulot :o


---------------
JE JE SUIS LIBERTINEEEEEEEEEEE JE SUIS UNE CATINNNNNNNNN §§§§§§§§
Reply

Marsh Posté le 13-10-2005 à 12:41:52    

Hello World V2.0

Code :
  1. #include <iostream>
  2. #include <string>
  3. int main() {
  4.   std::string s("hello world" );
  5.   std::cout << s << std::endl;
  6.   return 0;
  7. }


 
 
(Edit :  :o ouais, grillé, je sais)


Message édité par theShOcKwAvE le 13-10-2005 à 12:43:08
Reply

Marsh Posté le 13-10-2005 à 12:45:34    

en declarant String  
avec #include<string>    ou   #include<string.h>   ?

Reply

Marsh Posté le 13-10-2005 à 13:00:01    

safi-cat a écrit :

en declarant String  
avec #include<string>    ou   #include<string.h>   ?


 
Mon exemple n'est pas assez clair ? [:pingouino]

Reply

Marsh Posté le 13-10-2005 à 13:01:33    

safi-cat a écrit :

en declarant String  
avec #include<string>    ou   #include<string.h>   ?


http://www.infosys.tuwien.ac.at/Re [...] rwmain.htm
http://www.sgi.com/tech/stl/
http://www.cs.rpi.edu/~musser/stl-book/
 
Bonne lecture


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 13-10-2005 à 20:13:56    

en attendant String c'est pas standard (on est pas chez java), en C++ c'est string, en minuscule.
 
Méfie toi des bibliothèques exotiques qui s'amusent à définir un type String un peu différent. Dans la mesure du possible, utilise uniquement le string standard.

Reply

Marsh Posté le 13-10-2005 à 20:16:09    

CString, BSTR, _bstr_t, CComStr .. [:vague nocturne]

Reply

Marsh Posté le 13-10-2005 à 20:17:36    

chrisbk a écrit :

CString, BSTR, _bstr_t, CComStr .. [:vague nocturne]


C'est pas bien de dire des gros mots, vas te laver la bouche avec du savon [:mmmfff]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 13-10-2005 à 20:19:08    

masklinn a écrit :

C'est pas bien de dire des gros mots, vas te laver la bouche avec du savon [:mmmfff]


 
j'ai oublié OLECHAR, _variant_t et CComVariant [:vague nocturne]


Message édité par chrisbk le 13-10-2005 à 20:19:19
Reply

Marsh Posté le 13-10-2005 à 20:19:08   

Reply

Marsh Posté le 13-10-2005 à 21:53:49    

AnsiString, WideString  [:vague nocturne]


---------------
Nos estans firs di nosse pitite patreye...
Reply

Sujets relatifs:

Leave a Replay

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