my problem is that for some reason my array (tableau[]) gets filled with 9 (in other words, every argument fall into the "else" section of my if..else if structure), instead of the following arguments (81 in total)
I'm not sure that this is the problem, because the purpose of having an if...else if nest is to not do that... you see what I mean? I say if argument == (string) "8" (or "6" or whatever), assign a certain value to an array... but that doesn't seem to work, that's what I don't understand... I see what you mean but I thought I corrected this mistake, when I figured out I was passing chars to int, by nesting the thing with if..else if...
well I'm not doing that, I say if argv[i] == "4" (a string), assign an int to an array... I don't see what's wrong with that.... the problem is that my array gets filled with 9s instead of the parameters I give... but let's say you're right How should I do it then?