It seems you're having confusion with your pline() function:
1) Your pline() function has no prototype.
Code:
void pline(char ch,int i); //Put this above main() !
2) Your first call to your pline() function does not have valid agruments:
Why do you have
Code:
void pline(char ch '#',int i=40); //We don't like this
in main()? When you're calling a function, don't declare the arguments within the function call. Instead, pass it like:
Code:
pline('#',40); //We like this
3) Your second call to the pline() function has no arguments:
The pline() function takes two arguments, so you'll need to pass to it two arguments.
By the way, I *think* you meant:
Code:
void pline(char ch,int i)
{
for(int x=0;x<=i;x++) //loop 40 times (or whatever number gets passed to it)
printf("%c",ch);
}