I'm learning a few things about ncurses on c++ and my problem is that I want to print a matrix of strings on the screen of ncurses but some functions like printw(), addstr(), didnt let to add a thing like this....
string matrix[10][10];
for(int i=0; i < 10; i++){
for(int j=0; j < 10; j++){
printw("%s", matrix[i][j]);
}
}
matrix[i][j]
evaluates to astd::string
. You cannot use astd::string
as a valid argument toprintw
.Instead of
use