Jump to content

Alguém poderia me ajudar está dando erro na variavel int-0;


Alex de Souza Soares Junior

Recommended Posts

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <locale.h>
#include<conio.h>

main(){
    
    char c;
    char login[30];
    char senha[30];
    int a=10;
    int i-0;
    int verifica_senha=0;
    while(verifica_senha==0){
        printf("\n\t\tif sul de minas\n\n login: ");
        gets(login);
        printf("\n senha: ");
        while((c=getch())!=13){
            senha[i]=c;
            i++;
            printf("*");
            
        }
        senha[i]='\0';
        i-0;
        system("cls");
        a=strcmp(senha,"ifsuldeminas");
        if(a==0){printf("Seja bem vindo");system("color 0a");verifica_senha-1;}
        else{printf("%s Senha errada\n",senha);system("color 0c");}
        printf("\n");
        
    }
    system("pause");
    return 0;
    
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...