Source Code File 02-03_add2
02-03_add2.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-2024 by QPBC.
All rights reserved