undeclared identifier in C

前端 未结 5 1449
忘掉有多难
忘掉有多难 2021-01-26 04:29

I am trying to compile a small bank program in C in visual studio 2012 express. It shows me this error \"undeclared identifier\" for almost all variables and this one too \"synt

5条回答
  •  北海茫月
    2021-01-26 04:53

    Move this:

    int balance;
    printf("Enter your current Balance\n");
    scanf_s("%d",&balance);
    

    Before the switch statement.

提交回复
热议问题