Skip to content

Commit

Permalink
1.0改进空行提示缺分号的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YujiaCheng1996 committed Oct 12, 2015
1 parent 6fee30d commit 8b1e484
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions 1.0/1.0/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,19 @@ loop:;// Let user to input the file path.
{
k--;
}
switch ((int)str[k])
if (k > 0)
{
case '{':break;
case '}':break;
case ')':break;
case ']':break;
case '>':break;
case '\"':break;
default:printf("Missing \';\' in line %d.\n", i + 1);
switch ((int)str[k])
{
case '{':break;
case '}':break;
case ')':break;
case ']':break;
case '>':break;
case '\"':break;
case'\0':break;
default:printf("Missing \';\' in line %d.\n", i + 1);
}
}
}
p = p->next;
Expand Down

0 comments on commit 8b1e484

Please sign in to comment.