actually, ms. laserlight, i became more confused of the terms you used. i'm only on my first year at learning c, and still at 3rd year high school.
i don't know what it means to change command_words from an array of 50 pointers to char, to an array of 50 arrays of char.
i just wanted to know how to seperate strings into the different words, variables or numbers (which serves as the commands) it has, as long as it is seperated by a space, because later on i will have to deal with strings with 4 commands such as:
which means that matrix A will be multiplied to matrix B and the answer will be stored to matrix C orCode:>>MMUL A B C
which means that a scalar(int), 2, will be multiplied to matrix A and the answer will be stored to matrix B orCode:>>SMUL 2 A B
which means that 1st row of matrix A will be added to its 2nd row and the answer will be stored to its 3rd row.Code:>>ADDR A 1 2 3
i really have no idea on how to do it, but i think i know the operations well. it's just that i have no idea how to deal with this kinds of strings. in fact, i only learned strtok while searching the net, and i'm not even sure if its the correct procedure. so please, teach me how to seperate the strings so i can use them in the if statements properly.
thanks for the help!