Új hozzászólás Aktív témák

  • Gyb001

    senior tag

    Üdv.
    Vajon mi lehet a baj? NEm tudok rájönni:(

    struct partition{
    char *path;
    char *mount;
    char *opt;
    char *num1;
    char *num2;
    } ;
    ...
    struct partition p;
    ...

    pch = strtok (fstab," ");
    int j=0;
    while (pch != NULL)
    {
    switch (j)
    ​ 46. sor {
    case 0:
    printf("asd");
    p.path=pch;
    break;
    case 1:
    p.mount=pch;
    break;
    case 2:
    p.opt=pch;
    break;
    case 3:
    p.num1=pch;
    break;
    case 4:
    p.num2=pch;
    break;

    }

    pch = strtok (NULL, " ");
    j++;
    }

    g++ split.c && ./a.out
    split.c:46:1: error: stray ‘\342’ in program
    ��� {
    ^
    split.c:46:2: error: stray ‘\200’ in program
    ��� {
    ^
    split.c:46:3: error: stray ‘\213’ in program
    ���

    [ Szerkesztve ]

    A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station

Új hozzászólás Aktív témák