Home > Back-end >  In the autistic
In the autistic

Time:01-16

 # 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:

reference 1/f, zhao teacher reply:
13: char words []="...
16: cnline ((char *) words, I, j);

Can you tell me the reason in detail. thank you

CodePudding user response:

refer to sunny's reply: 3/f
Quote: reference, 1/f, zhao teacher reply:
13: char words []="...
16: cnline ((char *) words, I, j);

Can you tell me the reason in detail. Thank you

You enter the calling function and function parameters of the argument types do not match, to change to the same type

CodePudding user response:

The last words don't *
  • Related