Costruttore per la classe string.
Sintassi |
string() string(const string &in source) |
---|---|
source |
Stringa sorgente |
Esempio di utilizzo:
/* Stringa vuota */ string empty_string;
/* Stringhe assegnate */ string target1("valore per stringa 1"); string target2(target1); string target3 = "valore per stringa 3"; |