hello programmers . I have a question not a syntax one but I need it for speed in contests
we have a 3x3 array and when we call a number it add to itself and around him +1 but in many casses like [0][1] when we want to add around it there is a place like [-1][1] that you know that it doesent exist ! so is there a command like if that array number exists then add?
heres of an example of the adding:
[0][0] = [0][0] , [1][0] , [0][1]
[1][1] = [1][0] , [0][1] , [1][1] , [2][1] , [1][2]!
thanks for your minding
kshahnazari 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.