Guest User

Untitled

a guest
Jan 22nd, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. bool tipoPlato(int i)
  2.         {
  3.             switch (tokens[i])
  4.             {
  5.                 case "entradas":
  6.                     check = true;
  7.                     tipoPlato(i++);
  8.                     break;
  9.                 case "carnes":
  10.                     check = true;
  11.                     tipoPlato(i++);
  12.                     break;
  13.                 case "postres":
  14.                     check = true;
  15.                     tipoPlato(i++);
  16.                     break;
  17.                 case "pescado":
  18.                     check = true;
  19.                     tipoPlato(i++);
  20.                     break;
  21.                 Console.WriteLine(checkP);
  22.                 return checkP;
  23.  
  24.             }
  25.            
  26.         }
Add Comment
Please, Sign In to add comment