Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. char ides[100][100]
  2.  
  3. int tamArray = 100;
  4. bool tem = false;
  5. int x=0;
  6. if (yytext[0] == '\"'){
  7. }
  8. else{
  9.  
  10. for (x=0; x<tamArray; x++){
  11. if(strcmp(ides[x], yytext) == 0){
  12. printf("[id, %d]\n", x);
  13. tem = true;
  14. break;
  15. }
  16. }
  17.  
  18. if(!tem) {
  19. idCont++;
  20. strcpy(ides[idCont], yytext);
  21. printf("[id, %d]\n", idCont);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement