# include & lt; Stdio. H>
Void chline (char * ch, int, int j)
{
Int m=0, n=0;
Int temp=0;
While ((* + temp (ch))!='\ 0')
{}
}
Int main ()
{
int i, j;
Const char * words="Hello, my name is shuimaomao! \ nI likes to eat huyuyu \ n I want to Mary withe its ehrs \ n, bless me! \n";
Printf (" enter the rows and colunms: ");
Scanf_s (" % d % d ", & amp; I, & amp; J);
Chline (* words, I, j);
return 0;
}
Book is the old version to the compiler. I am using the new vs2019, I studied subjects is c + +, c is autistic, and ask, how can
CodePudding user response:
13: char words []="...16: cnline ((char *) words, I, j);
CodePudding user response:
chline (* words, I, j);
Parameters to remove *, otherwise type mismatch, shall be the argument is a char, parameter is char *
CodePudding user response: