Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pokedex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sam.pople
Pokedex
Commits
df865d4e
Commit
df865d4e
authored
Feb 04, 2023
by
sam.pople
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
3be7f81e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
mainpokedex.c
mainpokedex.c
+1
-2
mainpokedex.exe
mainpokedex.exe
+0
-0
pokedexstructs.h
pokedexstructs.h
+1
-1
No files found.
mainpokedex.c
View file @
df865d4e
...
...
@@ -180,7 +180,7 @@ void DisplayPlayerDetails(Pokedex* pokedex, char name[20])
}
//testing
int
main
()
{
// this creates the Pokedex and
inserts pokemon into it
{
// this creates the Pokedex and
gives it a head pokemon and player
Pokedex
pokedexvalues
;
PokemonNode
*
pokemonhead
=
NewPokemonNode
(
"Charizard"
,
"Fire"
,
"Blaze"
);
PlayerNode
*
playerhead
=
NewPlayerNode
(
"Alan"
);
...
...
@@ -205,7 +205,6 @@ int main()
//This tests a Pokemon that already exists
AddPokemonToList
(
pokedexvaluespointer
,
"Pikachu"
,
"Electric"
,
"Static"
);
//This function adds players to the pokedex
AddPlayerToList
(
pokedexvaluespointer
,
"Alan"
);
AddPlayerToList
(
pokedexvaluespointer
,
"Stephen"
);
AddPlayerToList
(
pokedexvaluespointer
,
"Sandra"
);
AddPlayerToList
(
pokedexvaluespointer
,
"Jack"
);
...
...
mainpokedex.exe
View file @
df865d4e
No preview for this file type
pokedexstructs.h
View file @
df865d4e
...
...
@@ -14,7 +14,7 @@ typedef struct PlayerNode {
PokemonNode
*
PokemonArray
[
30
];
struct
PlayerNode
*
nextplayer
;
}
PlayerNode
;
//This sets the structure for the pokedex and gives it two headers
typedef
struct
Pokedex
{
PokemonNode
*
pokemonhead
;
PlayerNode
*
playerhead
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment