Commit 35c7169d authored by cosmina.dunca's avatar cosmina.dunca

initial commit

parents
File added
{
"C_Cpp.errorSquiggles": "Disabled"
}
\ No newline at end of file
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
\ No newline at end of file
{
"folders": [
{
"path": "."
}
]
}
\ No newline at end of file
File added
File added
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.main</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
//my_functions.h
typedef struct PokemonNode // struct for a doubly linked list (Pokemons List)
{
char name[20]; // the name of the Pokemon
char type[20]; // the type of Pokemon
char ability[40]; // Pokemon's ability
struct PokemonNode *next; // pointer to the next Pokemon it is linked to
struct PokemonNode *prev; // pointer to the previous Pokemon it is linked to
}PokemonNode;
typedef struct PlayerNode // struct for a singly linked list (Players List)
{
char name[40]; // the name of the player
int totalOfPokemons; // the number of the pokemons it has collected so far
PokemonNode pokemonArray[21]; // an array of pointers for the pokemons owned by each player (allocate 21 instead of because we start indexing from 1 an the last element in NULL)
struct PlayerNode *next; // pointer to the next player in the linked list
}PlayerNode;
typedef struct Pokedex
{
PokemonNode *headPokemon; // head of the Pokemon List
PokemonNode *tailPokemon; // last element of Pokemon List
PlayerNode *headPlayer; // head of the Player List
}Pokedex;
PokemonNode *NewPokemonNode(char name[20], char type[20], char ability[40]); // creates a new pokemon node
void AddPokemonToList(Pokedex *pokedex, char[20], char type[20], char ability[40]); // once the node is created, this function will link it to the list of pokemons
PokemonNode *FindPokemon(Pokedex pokedex, char name[40]); // searches the list of pokemons to see if there is one that has the name transmitted using the parameter
void DisplayPokemonsOfSameType(Pokedex pokedex, char name[2]); // displays the pokemons of the same type (if the type entered is correct and there are pokemons in the list of that type)
void PrintPokemonList(Pokedex pokedex); // this function will display the pokemons and their chracteristic in order, starting from the head
void PrintPokemonListBackwards(Pokedex pokedex); // because I used a doubly linked, we can also go backwards and this function starts from the tail of the Pokemon List and goes all the way to the head
PlayerNode *NewPlayerNode(char name[40]); // creates a new player node
void AddPlayerToList(Pokedex *pokedex, char name[40]); // once the node is created, this function will link it to the list of players
PlayerNode *FindPlayer(Pokedex pokedex, char name[40]); // searches the list of players to see if there is one that has the name transmitted using the parameter
void AddPokemonToPlayer(Pokedex pokedex, char playerName[40], char pokemonName[40]); // this function has two string parameters, the name of the player and the name of the pokemon that needs to be added to the person's list of pokemons and it does that
void DisplayPlayerDetails(Pokedex pokedex); // this function displays every player and it's list of pokemons and their characteristics
void PrintPlayerList(Pokedex pokedex); // displays the list of players starting from the head
\ No newline at end of file
Natalie Portman
Natalie Portman
Natalie Portman
Brad Pitt
Rachel McAdams
Matthew McConaughhey
Matthew McConaughhey
Anne Hathaway
Leonardo diCaprio
Matthew McConaughhey
Emma Stone
Bradley Cooper
Keira Knightley
Cillian Murphy
Scarlett Johansson
Johnny Depp
Jessica Chastain
Ryan Gosling
Julia Roberts
Jude Law
Margot Robbie
Benedict Cumberbatch
Emma Watson
Henry Cavill
Tom Hiddleston
Tom Holland
Cameron Diaz
Angelina Jolie
Robert Pattinson
Jesse Eisenberg
Julia Roberts
Julia Roberts
Julia Roberts
\ No newline at end of file
Natalie Portman,Ponyta;
Natalie Portman,Ponyta;
Natalie Portman,Gyarados;
Benedict Cumberbatch,Onix;
Benedict Cumberbatch,Jynx;
Emma Stone,Ninetales;
Anne Hathaway,Blastoise;
Cillian Murphy,Larvitar;
Tom Hiddleston,Walrein;
Tom Hiddleston,Dewgong;
Leonardo diCaprio,Onix;
Leonardo diCaprio,Beedrill;
Leonardo diCaprio,Shellder;
Tom Hiddleston,Kakuna;
Tom Hiddleston,Dewgong;
Leonardo diCaprio,Golem;
Leonardo diCaprio,Articuno;
Jesse Eisenberg,Buterfree;
Jesse Eisenberg,Abra;
Jesse Eisenberg,Gyarados;
Jesse Eisenberg,Kadabra;
Cillian Murphy,Rapidash;
Cillian Murphy,Beedrill;
Benedict Cumberbatch,Kadabra;
Benedict Cumberbatch,Kakuna;
Benedict Cumberbatch,Ninetales;
Benedict Cumberbatch,Onix;
Benedict Cumberbatch,Starmie;
Johnny Depp,Walrein;
Brad Pitt,Ponyta;
Brad Pitt,Larvitar;
Brad Pitt,Jynx;
Brad Pitt,Golem;
Henry Cavill,Abra;
Henry Cavill,Kadabra;
Tom Holland,Shellder;
Tom Holland,Starmie;
Robert Pattinson,Kirlia;
Angelina Jolie,Dewgong;
Angelina Jolie,Gyarados;
Robert Pattinson,Onix;
Ryan Gosling,Larvitar;
Rachel McAdams,Articuno;
Cameron Diaz,Ninetales;
Cameron Diaz,Buterfree;
Henry Cavill,Kadabra;
Emma Watson,Golem;
Emma Watson,Blastoise;
Robert Pattinson,Kadabra;
Cameron Diaz,Abra;
Cameron Diaz,Shellder;
Cameron Diaz,Golem;
Cameron Diaz,Gyarados;
Cameron Depp,Kirlia;
Cameron Diaz,Dewgong;
Tom Holland,Dewgong;
Tom Holland,Larvitar;
Tom Holland,Articuno;
Emma Watson,Walrein;
Emma Watson,Ninetales;
Benedict Cumberbatch,Buterfree;
Benedict Cumberbatch,Rapidash;
Margot Robbie,Ninetales;
Jude Law,Walrein;
Jude Law,Larvitar;
Jude Law,Articuno;
Jude Law,Gyarados;
Jude Law,Kakuna;
Julia Roberts,Golem;
Julia Roberts,Kirlia;
Johnny Depp,Abra;
Johnny Depp,Kadabra;
Johnny Depp,Articuno;
Johnny Depp,Onix;
Scarlett Johansson,Dewgong;
Scarlett Johansson,Larvitar;
Scarlett Johansson,Blastoise;
Cillian Murphy,Ninetales;
Cillian Murphy,Dewgong;
Cillian Murphy,Buterfree;
Cillian Murphy,Articuno;
Cillian Murphy,Kadabra;
Cillian Murphy,Abra;
Cillian Murphy,Gyarados;
Cillian Murphy,Kakuna;
Cillian Murphy,Golem;
Cillian Murphy,Onix;
Bradley Cooper,Beedrill;
Bradley Cooper,Ponyta;
Leonardo diCaprio,Ponyta;
Leonardo diCaprio,Abra;
Leonardo diCaprio,Kadabra;
Leonardo diCaprio,Kakuna;
Leonardo diCaprio,Rapidash;
Leonardo diCaprio,Blastoise;
Leonardo diCaprio,Ninetales;
Leonardo diCaprio,Buterfree;
Leonardo diCaprio,Starmie;
Leonardo diCaprio,Jynx;
Leonardo diCaprio,Dewgong;
Leonardo diCaprio,Gyarados;
Leonardo diCaprio,Larvitar;
Leonardo diCaprio,Kirlia;
Leonardo diCaprio,Walrein;
Anne Hathaway,Jynx;
Anne Hathaway,Rapidash;
Matthew McConaughhey,Jynx;
Matthew McConaughhey,Articuno;
Matthew McConaughhey,Blastoise;
Matthew McConaughhey,Starmie;
Rachel McAdams,Gyarados;
\ No newline at end of file
Onix,Rock,Sturdy;
Onix,Rock,Sturdy;
Onix,Rock,Sturdy;
Onix,Rock,Sturdy;
Beedrill,Bug,Swarm;
Buterfree,Bug,Compound Eyes;
Abra,Psychic,Synchronise;
Ponyta,Fire,Run Away;
Rapidash,Fire,Flash Fire;
Blastoise,Water,Torrent;
Kakuna,Bug,Shed Skin;
Ninetales,Fire,Flash Fire;
Ponyta,Fire,Run Away;
Ponyta,Fire,Run Away;
Kadabra,Psychic,Inner Focus;
Shellder,Water,Shell Armor;
Starmie,Psychic,Illuminate;
Jynx,Psychic,Oblivious;
Golem,Rock,Sturdy;
Articuno,Ice,Pressure;
Dewgong,Ice,Hydration;
Gyarados,Water,Intimidate;
Gyarados,Water,Intimidate;
Larvitar,Rock,Guts;
Kirlia,Psychic,Trace;
Gyarados,Water,Intimidate;
Walrein,Ice,Thick Fat;
Gyarados,Water,Intimidate;
\ No newline at end of file
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