Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
c_pokedex_assignment
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
elijah vasquez
c_pokedex_assignment
Commits
176839ca
Commit
176839ca
authored
Jan 16, 2023
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit2
parent
53bb4d09
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
8 deletions
+34
-8
settings.json
.vscode/settings.json
+5
-0
functions.exe
functions.exe
+0
-0
functions.h
functions.h
+27
-0
main.c
main.c
+2
-8
main.exe
main.exe
+0
-0
No files found.
.vscode/settings.json
0 → 100644
View file @
176839ca
{
"files.associations"
:
{
"functions.h"
:
"c"
}
}
\ No newline at end of file
functions.exe
View file @
176839ca
No preview for this file type
functions.h
View file @
176839ca
typedef
struct
Pokedex
{
struct
PokemonNode
*
head
;
struct
PokemonNode
*
tail
;
}
Pokedex
;
typedef
struct
PokemonNode
{
char
pokemonName
[
15
];
char
pokemonType
[
15
];
char
pokemonAbility
[
30
];
}
PokemonNode
;
typedef
struct
PlayerNode
{
char
playerName
[
100
];
int
totalPokemon
;
PokemonNode
ptrArray
[];
}
PlayerNode
;
// Pokemon List functions
PokemonNode
*
NewPokemonNode
(
char
name
[
15
],
char
type
[
20
],
char
ability
[
30
]);
void
AddPokemonToList
(
Pokedex
*
pokedex
,
char
name
[
15
],
char
type
[
20
],
char
ability
[
30
]);
PokemonNode
*
FindPokemon
(
Pokedex
pokedex
,
char
name
[
15
]);
// Player List functions
main.c
View file @
176839ca
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdbool.h>
#include "functions.h"
#include "functions.h"
typedef
struct
Pokedex
{
}
Pokedex
;
int
main
(
void
)
int
main
(
void
)
{
{
Pokedex
pokedex
;
return
0
;
}
}
\ No newline at end of file
main.exe
View file @
176839ca
No preview for this file type
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