Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef _WIN32
- #include <conio.h>
- #else
- #include <stdio.h>
- #define clrscr() printf("\e[1;1H\e[2J")
- #endif
- #include <stdlib.h>
- #include <string.h>
- #include <malloc.h>
- #include <time.h>
- #include <math.h>
- #include "LP_Leitura.h"
- #include "LP_Utils.h"
- #include "common.h"
- #include "cpu.h"
- #include "history.h"
- #include "human.h"
- struct credits {
- char name[50];
- int number;
- int group;
- int class;
- } person[3];
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- void printCredits() { //Print the credits for each person
- int i;
- for (i = 0; i < 3; i++) {
- printf("Nome: %s\nNùmero: %d\nGrupo: %d\nTurma: %d\n\n", person[i].name, person[i].number, person[i].group, person[i].class);
- }
- }
- void credits() {
- clrscr(); //Clear the screen
- printf("Créditos\n");
- //Assign values to each person
- strcpy(person[0].name, "Francisco Nogueira");
- strcpy(person[1].name, "Juliana Martins");
- strcpy(person[2].name, "Pedro Henriques");
- person[0].number = 8160574;
- person[1].number = 8160177;
- person[2].number = 8160584;
- person[0].group = 100;
- person[1].group = 100;
- person[2].group = 100;
- person[0].class = 1;
- person[1].class = 1;
- person[2].class = 1;
- printCredits();
- printf("Clique no Enter para continuar");
- getchar();
- }
Add Comment
Please, Sign In to add comment