 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
wilfried.pz Guest
|
Posted: Thu Oct 13, 2005 6:22 pm Post subject: String in C-String wandeln |
|
|
muß für ein C++ Konsoleprogramm Stringdaten in C-Strings wandeln. wie geht
das ?
mfg,
Wilfried.pz
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
Bernd Nawothnig Guest
|
Posted: Fri Oct 14, 2005 12:09 pm Post subject: Re: String in C-String wandeln |
|
|
On 2005-10-13, wilfried.pz wrote:
| Quote: | muß für ein C++ Konsoleprogramm Stringdaten in C-Strings wandeln. wie
geht das ?
|
..c_str()
Bernd
--
Those who desire to give up freedom in order to gain security,
will not have, nor do they deserve, either one. [T. Jefferson]
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
Rolf Magnus Guest
|
Posted: Sat Oct 15, 2005 12:25 pm Post subject: Re: String in C-String wandeln |
|
|
wilfried.pz wrote:
| Quote: | muß für ein C++ Konsoleprogramm Stringdaten in C-Strings wandeln.
|
Nur, wenn du Funktionen benutzt, die einen C-String erwarten.
const char* str = thestring.c_str();
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|