Advertisement
rrcfs

Tokens v2

Oct 13th, 2014
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.80 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio2.h>
  3. #include<string.h>
  4. #include<stdlib.h>
  5. #include <time.h>
  6. #define TF 30
  7. struct TP_Tok
  8. {   const char pontos[8]= {'.', ',', ';', ':', '!', '-', '"'};
  9.     const char Operadores[30]= {'=', '>', '<', '>=', '<=', '<>', '+', '-', '*', '/', '%', '?'};
  10.     //'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q','r', 's', 't', 'u', 'v', 'x', 'y', 'z',
  11.     const char idents [4]={'([ ]','{ }', '( )'};
  12.     int cor;
  13. };
  14. void Information(void)
  15. {
  16.        
  17. }
  18. void resetarCores();
  19. int main (void)
  20. {
  21.     struct TP_Tok Tokens;
  22.     resetarCores();
  23.     Information();
  24.     printf("Cor:");
  25.     scanf("%d", &Tokens.cor);
  26.     textcolor(Tokens.cor);
  27.     puts(Tokens.idents);
  28.     return 0;
  29. }
  30. void resetarCores() {
  31.     textbackground(WHITE);
  32.     clrscr();
  33.     textcolor(BLACK);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement