#include<stdio.h>
#include<string.h>
int main()
{
    char c[6][50];
    char *p,*r;
    int i;
    r=c[5];
    for(i=0; i<5; i++)
        gets(c[i]);
    for(i=0; i<4; i++)
    {
        p=c[i];
        if(strcmp(*p,*(p+1))>0)
        {
            *r=*p;
            *p=*(p+1);
            *(p+1)=*p;
        }
    }
    p=c[0];
    *r=*p;
    *p=*(p+4);
    *(p+4)=*r;
    for(i=0; i<5; i++)
        puts(c[i]);
    return 1;
}
错误提示:cpp(14) : error C2664: 'strcmp' : cannot convert parameter 1 from 'char' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
执行 cl.exe 时出错.