有人可以告诉我printw究竟做了什么?我试着寻找信息但却找不到任何东西。
答案 0 :(得分:2)
Google
上的5秒钟显示了一些不错的文档。
printw() class: Print formatted output similar to printf()
和
6.3.1. printw() and mvprintw
These two functions work much like printf(). mvprintw() can be used to move
the cursor to a position and then print. If you want to move the cursor first
and then print using printw() function, use move() first and then use printw()
though I see no point why one should avoid using mvprintw(), you have the
flexibility to manipulate.