Commit 8b023cf1 authored by a-j.towse's avatar a-j.towse

pokemon list array added

parent 2b6fcd26
...@@ -27,12 +27,14 @@ typedef struct PokemonNode { ...@@ -27,12 +27,14 @@ typedef struct PokemonNode {
struct PokemonNode *prev; struct PokemonNode *prev;
}; };
typedef struct Player { //Create struct PlayerNode wiith name, pokemonCount, and an array of pointers to pokemon owned called pokemonList
//Create variables of type PlayerNode to store next and previous node in DLL
typedef struct PlayerNode {
char name[20]; char name[20];
int pokemonCount; int pokemonCount;
struct Player *next; struct PlayerNode *next;
struct Player *prev; struct PlayerNode *prev;
struct PokemonNode pokemonList[];
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment