1
I tried to erase half of the code and leave it only with the first block, but keeps giving error in the operators and in each scanf
that I give, being that I need to find a way to assign the values that I take scanfs
and play within the proper variables. Can someone please help me?
#include <stdio.h>
#include <stdlib.h>
char _nome[20];
int _idade[9];
int _cpf[11];
main()
{
const int dez = 10;
printf("O CRUD - cadastre o usuário, com nome, idade, cpf\n Nome: ");
scanf("%s" &_nome);
prinf("Idade: \n");
scanf("%d" &_idade)
printf("CPF(digite sem os pontos e sem traços): \n");
scanf("%d" &_cpf);
printf("usuário cadastrado com sucesso! \n Deseja alterar os dados de algum usuario? \n s ou n");
scanf("s || n");
if (scanf "s" == 1);
else
system("pause");
printf("Qual dos dados do usuário você deseja alterar? \n Nome = 1 \n Idade = 2 \n CPF = 3 \n");
if (scanf == 1);
function _Leitura(get_pointer_safety);
if (scanf == 2);
function _Alterar(get_pointer_safety);
if (scanf == 3);
function _Excluir();
else
system("pause")
else
system("pause");
else
system("pause");
}
function _Leitura(get_pointer_safety)
{
if return _nome = 1;
getchar();
putchar() &char = &putchar(&_nome);
else
system("pause");
}
function _Alterar()
{
printf("alterando dados do usuário... \n Nome: ");
getchar();
putchar(_Usuario());
printf("Idade: \n");
scanf("%d");
printf("CPF: \n");
scanf("%d");
printf("Mais alguma coisa? \n s ou n");
scanf("%s")
if scanf("%s") == "s"
return _a
else
system("pause");
}
function _Excluir()
{
}
There is a lot wrong there Ramon. The Sintaxis in the structures if it is wrong and the scanf should be used as function not as object.
– Adolfo Correa
one of the reasons I turn here, is precisely the various flaws that are giving to this, but like, me and a friend of mine are digging here in the code for a long time this morning, and we can’t get much success no, why although I declare before the main block the read, change and delete functions, is giving error in the scanfs, all right, I just really wanted a way to assign the values I took of each function scanf declared and put in the proper variables, already tried the getchar and putchar in each printf but still yes, it did not work very well... =/
– Ramon Entayrer Dilan
Guy here ran a lot of bugs. But I didn’t finish the program.
– Adolfo Correa
Bro, don’t need to finish the program, in case, it would help a lot if you send the Pastebin than you managed to solve, then I take a look at what was set up and study a little deeper and it works out too
– Ramon Entayrer Dilan
test that code there. Accept the answer and vote so I can earn some points.
– Adolfo Correa