Pass c++ strings to ncurses mvwaddstr()

Hello,

i need to pass regular c++ strings to the ncurses mvwaddstr() functions.
How can achive this?


 
  mvwaddstr(a,1,1,"This is window A");


Any suggestion?

Edit: solved using myString.c_str();
Last edited on
std::string provides c_str() method for this.
Last edited on
Topic archived. No new replies allowed.