Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <locale.h>
- int main()
- {
- int tamanho = 0, repeat, inverte = 265; wchar_t word[266], contrario[266];
- //printf("%s", setlocale(LC_ALL,"Portuguese"));
- wscanf(L"%ls", (word));
- //printf("~%d %d ~~ %d\n", (int) palavra[0], (int) palavra[4], (int) strlen(palavra));
- for (repeat = 0; repeat < 266 / 2; repeat ++)
- {
- /*if (word[repeat] == 'é' || word[repeat] == 'É')
- {
- word[repeat] = 'e';
- }
- if (word[repeat] ==)*/
- if (word[repeat] != word[265 - repeat])
- //if (strcmp(contrario, word) != 0)
- {
- printf("NAO\n");
- return(0);
- }
- else
- {
- tamanho ++;
- }
- }
- printf("SIM\n%d\n", tamanho);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement