-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlab23.c
executable file
·44 lines (24 loc) · 925 Bytes
/
lab23.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/** lab23.c
* ===========================================================
* Name: CS210
* Section:
* Project: Lab 23
* Purpose: Practice using structs
* ===========================================================
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "lab23functs.h"
int main() {
// WRITE CODE HERE AFTER YOU HAVE FINISHED IMPLEMETNING LAB23FUNCTS.C
// Ask the user for the name of the file to read
// Create an array, and fill it using your readPokemonData function
// Calculate the CP of all Pokemon using your calculateCombatPower function
// Ask the user to type the names of the two Pokemon he/she wishes to compare
// If the user types the name of a Pokemon that does not exist in the array, print an error message and exit
// Otherwise, Print the stats of both Pokemon
// Print the predicted winner
return 0;
}