Salut,
Ceci est un extrait de mon programme de gérance de contacts.
J'ai un fichier dans lequel j'ai entré 4 contatcs .Lorsque j'essaye de l'ouvrir il y a des erreurs quis'affichent.
Je ne sais pas quel est le probleme.
void main()
{Contact * temp=NULL;
printf("\nNous allons essayer de resoudre le probleme");
FILE*fp=NULL;
fp=fopen("Contacts.txt","r");
if(fp==NULL)
printf("Ouverture impossible");
fread(temp,sizeof(Contact),1,fp);
printf("Le nom de la personne est :%s",temp->nom);
}
Les erreurs
Loaded symbols for 'C:\Users\Melek\Desktop\C_Project_2008\Melek_Project\Projet\Debug\Projet.exe'
Loaded 'C:\Windows\System32\ntdll.dll', no matching symbolic information found.
Loaded 'C:\Windows\System32\kernel32.dll', no matching symbolic information found.
The thread 0xE10 has exited with code 0 (0x0).
Merci d'avance