Hello. I have an algorithm in C to delete a user, but not to interact in the array:
#include<stdio.h>
#include<stdlib.h>
#include<locale.h>
#include<conio.h>
#define numeroUSER 100
char nome[numeroUSER][100] = {"João Carlos","Maria Luisa","Pedro José", "Gerente"};
int main() {
excluirUsuario();
}
void excluirUsuario() {
int indice=0;
printf("informe o indice: \n");
scanf("%d", &indice);
for (int i=0; i<numeroUSER; i++) {
nome[i]100] = nome[i+1][100];
}
}
If I enter index 0, I want you to delete john from the list, since it is the first one and remain the rest. The algorithm does not delete and I end up deleting some of the names, that is, I can position myself in the string, but I can not position myself between the indexes with the names. How do I exclude this. Obs, it's a programming logic.