duongthaiha a écrit : > Hi > Sorry for a new bee question. > > I am trying to have a method > > void output2file(char* filename) > > but when i pass the parameter, the parameter is string. > Is there any way to change from string to char* > >
Not directly, but if your function was void output2file(const char* filename) you could have used std::string.c_str() which return a const char* that represent the std::string in a null terminated char array. > Thanks a lot > I reall do appreciate your help > > Best regard >
