instead of showing the array number designated my output all became N=0 and i declared N=0 because would get the error'without initialization' if didn't do so. I suspect the code in bold is the problem because it run fine without it but became weird after inserting the code.Please tell me how to fix this >.<
The long code! My purpose is to check the input of the user. let say he put number 1,2,3,4,5,6 but one of the number at least need to be equal like 1,1,3,4,5,6. This is the solution that i only figured out since i only know how to use stdio.h and a limited set of declaration.... Well if u could fix everything make it run then i will be appreciate for it. The major part still lies within {num[row][col]=N;row=x;col=y;} which i suspected to be wrong since even the short code in my previous post already got problem...
but if i don't do so i can't even start the program due to error of 'The variable N is being used without initialized' so any suggestion to solve this problem??
nvm..... i realize my own mistake..... my mindset thought programming equation is the same as mathematic.... x=y is same as y=x but actually different in in programming =.= thx anyway~ solved my problem!!