Code:
int main(void)
{
.
.
.
char row[15];
}
int function(char *row)
{
char numbers[16] = { "0", "1", ........"15" };
for(i=0; i<size; i++)
{
if(....= ...)
[Code help needed here! ]
}
}
ok..i pasted a very small portion of my assignment that i'm doing...anywayz....the problem i'm have is trying to assign the "row" to a value from "numbers"....how wud i approach doing this, i tried several ways, they work, but from the numbers 1-9, any higher, it'll juz take the first number, i.e 15, will become 1.
this was one of them -> *row = *(numbers[i]); but yea, that's buggy...