Void input (char [] s)
{
Gets (s);
}
Void show (char [] s)
{
puts(s);
}
Void FanXuCunFang (char [] s)
{
int i,n;
N=strlen (s);
Char s_temp [100].
for(i=0; i
S_temp [I]=[n - s I - 1);
}
for(i=0; i
S=s_temp [I] [I];
}
}
Int main ()
{
Char s [100];
Printf (" please input the Chinese string: \ n ");
The input (s);
Printf (" you entered is: \ n ");
Show (s);
Printf (" store order... \n");
FanXuCunFang (s);
Printf (" store after the output order: \ n ");
Show (s);
return 0;
}
CodePudding user response:
What is wrong? Header file didn't guide come in?#include
CodePudding user response:
# include
#include
Void input (char [s], int len)
{
The fgets (s, len, stdin);
}
Void show (char [] s)
{
puts(s);
}
Void FanXuCunFang (char [] s)
{
int i,n;
Char s_temp [100].
N=strlen (s);
for(i=0; i{
S_temp [I]=[n - s I - 1);
}
for(i=0; i{
S=s_temp [I] [I];
}
}
Int main ()
{
Char s [100];
Printf (" please input the Chinese string: \ n ");
The input (s, 100);
Printf (" you entered is: \ n ");
Show (s);
Printf (" store order... \n");
FanXuCunFang (s);
Printf (" store after the output order: \ n ");
Show (s);
return 0;
}
For your reference ~
A compiler error because of lack of header files & lt; String. H>