So i'm not looking for anyone to give me code on how to do this.
I would just like a tip or two.
I have a .txt file with a deck of cards in it saved into a card struct like :
struct card
{
char suit;
char value;
};
now i want to search for Joker A and B each have a suit of either 'A' or 'B'
with joker A i wanna move it down 1 spot in the array and if its already at the bottom of the array i wanna move it 2 down and the same thing with B joker except i want to move it 2 down and if its going to end up on top of the deck i wanna move it 3 down.
I know how to do most of it besides the part of moving the array values w/o erasing them in the process.
I've seen people using memmove but I have no clue how to use it and being that this is an assignment I don't really feel like learning something I'm not supposed to use any way.
Sorry if its confusing lol