Is it possible to take a string and get two different values from it to store in different type variables, more specifically, an integer and a character.
Brief example:
string : "A - 3"
int number : 3
char name : 'A'
I've seen people take multiple int from a string but nothing worked for me. I should add I am very new to C, so I don't really know how to mess around with it too much.
Its for a slide puzzle minigame where I need to read a text file with all instructions from the user, formatted with what direction each number block goes ("8 r" = 8 goes right), and print to the terminal each and every move. If anyone could suggest how I could take an int and char at the same time from a line on a file, I would also be grateful.