All pastes #497764 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-20 01:43 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include "structures.h"


int main()
{
	long i = 0, i2 = 0;
	Personnes joueur[2];

	for(i=0 ; i < 2 ; i++)
	{
            printf("Bienvenue joueur %ld !\n\n", i+1);
            printf("===Récupération des informations du joueur %ld ===\n\n", i+1);

            printf("Quel est ton nom ?\n");

            scanf("%s", &joueur[i].nom);

            printf("Quel est ton prénom?\n\n");

            scanf("%s", &joueur[i].prenom);

            printf("Informations sur le joueur %ld\n\n", i+1);

            printf("Le joueur %ld s'appele %ld %ld\n\n\n", i+1, joueur[i].nom, joueur[i].prenom);
	}


	return 0;
}