Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char ides[100][100]
- int tamArray = 100;
- bool tem = false;
- int x=0;
- if (yytext[0] == '\"'){
- }
- else{
- for (x=0; x<tamArray; x++){
- if(strcmp(ides[x], yytext) == 0){
- printf("[id, %d]\n", x);
- tem = true;
- break;
- }
- }
- if(!tem) {
- idCont++;
- strcpy(ides[idCont], yytext);
- printf("[id, %d]\n", idCont);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement