I'd imagine since all the functions are defined with a char ch you wanted to print whatever you passed into the function, so why not replace all the printw("*"); with printw(ch);? and instead of just passing in an uninitialized variable like you are in your main function, pass in what ever you wanted to print? like print_right(11,19,10,'f');?
and instead of just passing in an uninitialized variable ...
Or initialize it to whatever you want to print. It makes it easier if you want to change the character later you only need to change it at one location.
drew887 wrote:
replace all the printw("*"); with printw(ch);
printw works similar to printf so the first argument should be a string. If you want print the character using printw you can do printw("%c", ch); or you can use addch, addch(ch);.