Source Code File 02-04_add3
02-04_add3.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 */
move(2,0); /* row 3, column 1 */
addstr("Though art more lovely...");
refresh(); /* display the result */
getch(); /* wait */
endwin();
return(0);
}
Output Screenshot

Copyright © 1997-2025 by QPBC.
All rights reserved
