Hello friends.
I have a C programming assignment and I have very little time left.
I need to write this function.
I'd be very happy if you could help.
Note: It is forbidden to use <string.h>.
Write a function that takes name, type, attack range, attack power and stamina
specifications of the all Pokémons built a Pokedex. The function takes the name of the Pokémon that is
queried by the user (inside the function) and show the specifications of the Pokémon if it is in the Pokedex
database. Pokémons and attack types of Pokémons must be an enumerated type. You can find professor
Oak’s Pokedex information in Pokedex.xls file (you should not try to read information of the Pokémons
from the file programmatically, just read the file to prepare your arrays and enums manually). The function prototype is:
void pokedex(char *Pokemon_name[], int range[], attack_type type[],
int attack_power[], int stamina[]);
Example run on the function:
Input:
Please type name of the Pokémon (type exit to close Pokedex):
Pikachu
Output:
Name: Pikachu
A. Type : Linear
Range: 3 block
A. Power : 105
Stamina : 500