Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3220 connectés 

  FORUM HardWare.fr
  Programmation
  C++

  class String en c++

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

class String en c++

n°1221998
safi-cat
merci d'avence
Posté le 13-10-2005 à 12:34:30  profilanswer
 

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

mood
Publicité
Posté le 13-10-2005 à 12:34:30  profilanswer
 

n°1222009
elianor
bannie 17 fois
Posté le 13-10-2005 à 12:41:12  profilanswer
 

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


---------------
JE JE SUIS LIBERTINEEEEEEEEEEE JE SUIS UNE CATINNNNNNNNN §§§§§§§§
n°1222010
theShockWa​ve
I work at a firm named Koslow
Posté le 13-10-2005 à 12:41:52  profilanswer
 

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
n°1222012
safi-cat
merci d'avence
Posté le 13-10-2005 à 12:45:34  profilanswer
 

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

n°1222023
theShockWa​ve
I work at a firm named Koslow
Posté le 13-10-2005 à 13:00:01  profilanswer
 

safi-cat a écrit :

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


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

n°1222027
masklinn
í dag viðrar vel til loftárása
Posté le 13-10-2005 à 13:01:33  profilanswer
 

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 by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1222465
jesus_chri​st
votre nouveau dieu
Posté le 13-10-2005 à 20:13:56  profilanswer
 

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.

n°1222466
chrisbk
-
Posté le 13-10-2005 à 20:16:09  profilanswer
 

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

n°1222467
masklinn
í dag viðrar vel til loftárása
Posté le 13-10-2005 à 20:17:36  profilanswer
 

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 by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1222468
chrisbk
-
Posté le 13-10-2005 à 20:19:08  profilanswer
 

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
mood
Publicité
Posté le 13-10-2005 à 20:19:08  profilanswer
 

n°1222538
KangOl
Profil : pointeur
Posté le 13-10-2005 à 21:53:49  profilanswer
 

AnsiString, WideString  [:vague nocturne]


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

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C++

  class String en c++

 

Sujets relatifs
charactere dans stringprobleme de String avec javascript
Schema UML (class) pour creer un accès securisé ?[ debutant ] String
Comment changer ma variable en String ?Chainne de caractere String
récuperer la date et l'heure courante dans une stringUsage de la méthode toString() sur un objet String
const string & Class::Methode()[STL] class string et comparaison non case-sensitive
Plus de sujets relatifs à : class String en c++


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)