Source Code File 02-03_add
02-03_add.c
#include <ncurses.h>
int main()
{
char t1[] = "Shall I compare thee";
char t2[] = " to a summer's day?";
initscr();
addstr(t1); /* add the first string */
addstr(t2); /* add the second string */
refresh(); /* display the result */
getch(); /* wait */
endwin();
return 0;
}
Output Screenshot

Copyright © 1997-2025 by QPBC.
All rights reserved
