|
|
#include <ocurses.h>NOTESint printw(fmt [,arg...]) char fmt;
EXAMPLE
#include <ocurses.h>main() { char* title = "Not specified"; int no = 0;
/* Missing code. */
initscr();
/* Missing code. */
printw("%s is not in stock.\n", title); printw("Please ask the cashier to order %d for you.\n", no);
refresh(); endwin(); }
The output from this program will appear as follows:
Not specified is not in stock. Please ask the cashier to order 0 for you.
$[]