My question is how to use the same conscept within a ncurses program ?
I tried it once , but I cant understand the error. (error:undefined reference to `repchar(char, int)')
#include<ncurses.h>
void repchar(char='*' , int=10) ;
Ya thats a problem in this code , So I need your help to correct the error. I mean how to make both, pointers or how to make both as just an argument.(Its not working for me/ Error in my way)
If you just want to pass a single char you use single quotes as you did. You will have to substitute printw with a function that takes a char as argument.