#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[]){
char noticia[11][1250]={"","","","","","","","","",""};
char not_aux[50];
int opcao=0, indice_aux, num_partes=25, i, del_indice, tam_string=0, libera_partes;
do{
system("cls");
printf("Digite uma opcao:\n\n");
printf("1 - Escrever um trecho de noticia (%d restantes)\n", num_partes);
printf("2 - Visualizar as noticias gravadas no indice\n");
printf("3 - Apagar uma noticia do indice\n");
printf("4 ou qualquer outra tecla - SAIR\n\n");
printf("Escolha uma opcao: ");
opcao = getchar();
getchar();
switch(opcao){
case '1':
if(num_partes == 0){
printf("Todos os 25 trechos de arquivos permitidos foram enviados!\nApague algumas noticias para enviar novas.\n");
break;
}
do{
printf("Digite um trecho de noticia (MAX 50 caracteres):\n\n");
fgets(not_aux, 500, stdin);
tam_string = strlen(not_aux);
if(tam_string > 51){
for(i = 0; i <= 500; i++){
not_aux[i] = NULL;
}
printf("Noticia muito grande, possui %d caracteres\n", tam_string-1);
system("pause");
}
}while(tam_string > 51 );
do{
printf("Digite o codigo do indice da noticia (entre 1 e 10): ");
scanf("%d", &indice_aux);
getchar();
if((indice_aux > 10) || (indice_aux < 1)){
printf("NUMERO DE INDICE INVALIDO! DIGITE UM VALOR ENTRE 1 E 10!!!\n\n");
}
}while((indice_aux > 10) || (indice_aux < 1));
if(tam_string <= 50){
strncat(noticia[indice_aux], not_aux, tam_string-1);
}else{
strncat(noticia[indice_aux], not_aux, 50);
}
num_partes--;
break;
case '2':
printf("Imprimindo noticias gravadas:\n\n");
printf("INDICE\tNOTICIA\n");
for(i = 0; i<=9; i++){
printf("%d\t%s\n", i+1, noticia[i+1]);
};
system("pause");
break;
case '3':
printf("Digite o indice da noticia que deseja apagar: ");
scanf("%d", &del_indice);
getchar();
strcpy(noticia[del_indice], "");
printf("Noticia apagada\n\n");
system("pause");
break;
default:
printf("Saindo do programa...\n");
system("pause");
return 0;
}
}while(1);
return 0;
} Da o seguinte erro ao copilar: Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Users\Leonardo Oliveira\Documents\noticias.c" -o "C:\Users\Leonardo Oliveira\Documents\noticias.exe" -ansi -traditional-cpp -w -fmessage-length=0 -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -fmessage-length=0 gcc.exe: installation problem, cannot exec `cc1': No such file or directory Desde Já Agradeço, uso DEV C++