All pastes #294620 Raw Edit

Trucs

public c v1 · immutable
#294620 ·published 2006-12-28 18:05 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>#include <string.h>struct Personne{  char nom[100];  char prenom[100];};int main(int ac, char **av){  struct Personne joueur[3];  while(joueur < joueur[3])    {      printf("Quel est votre nom ?\n");       scanf("%s", joueur[0].nom);        scanf("%s", joueur[1].nom);         scanf("%s", joueur[2].nom);          scanf("%s", joueur[3].nom);       printf("Quel est votre prenom ?\n");        scanf("%s", joueur[0].prenom);         scanf("%s", joueur[1].prenom);          scanf("%s", joueur[2].prenom);           scanf("%s", joueur[3].prenom);      printf("Vous vous appelez %s %s\n", joueur[0].prenom, joueur[0].nom);       printf("Vous vous appelez %s %s\n", joueur[1].prenom, joueur[1].nom);        printf("Vous vous appelez %s %s\n", joueur[2].prenom, joueur[2].nom);         printf("Vous vous appelez %s %s\n", joueur[3].prenom, joueur[3].nom);    }  return 0;}