“printw”到底是做什么的? (Ncurses)

问题描述 投票:0回答:3

有人可以告诉我 printw 到底是做什么的吗?我尝试寻找信息但找不到任何东西。

ncurses
3个回答
3
投票

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.

来源 - NCURSES-编程-HOWTO


1
投票

输入

man printw
(我猜你不是用 Windows 编程)。


0
投票

在这里找到这个手册页 -> https://linux.die.net/man/3/printw

© www.soinside.com 2019 - 2024. All rights reserved.