Possible Duplicate:
Convert std::string to const char* or char*
i've got a line from a txt data with this methode
for ( int anrede=0;!user1.eof();anrede++){
if (anrede==1){
getline(user1, inhalt_anrede);
}
}
now inhalt_anrede
should be converted to char[5] anrede
i have used anrede
in other parts of the program.
so the txt data works like a save-data.
i'm still learning so please be tender ;D.
btw.: no, this is no homework like someone says about a other question from me. i from germany and in germany there is no C++ @ schools. not even java or delphi. if ur lucky u learn HTML, thats it.