Posts by Tshellsi • 51 points
2 posts
-
1
votes1
answer1503
viewsA: Problems using setlocale() in c
#include <stdio.h> #include <stdlib.h> #include <locale.h> //necessário para usar setlocale int main(void){ setlocale(LC_ALL,"portuguese"); printf("\n****** Verificando a…
-
4
votes1
answer671
viewsQ: I want to check if the string contains only letters?
#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> #define tam 50 main(){ struct cadastro{ char nome[tam]; }; struct cadastro dados; printf("Nome:");…