Hello everyone. I am having issues using my counters to count the upper case, lower case, numbers, digits, and special caracters of my program. It looks like this:
#include <stdio.h>
#include <cstring>
#include <cctype>
int main(){
char nom[20], nombre[20];
int nomm=0, i=0, cont=0, may=0, min=0, esp=0, num=0, digit=0;
printf("Ingrese dos nombres. \n");
gets(nom);
gets(nombre);
As you can see, issue is with the counter. I write different frases with diffrent caracters and the numbers I receive back are very random.
Any help appreciated.