What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-18 04:21:04
gdscript loop through array
# loop for n = 0 to 7 for n in 8: print(n) # Using range for n in range(8): print(n) # loop for n = 10 to 12 for n in range(10,13): print(n) # count down from 10 to 1 for n in range(10,0,-1): print(n) # loop for n = 2,4,6,8 in steps of... Add solution -
C++ 2021-09-05 11:52:02
c++ forbids comparison between pointer and integer
char a[2] defines an array of char's. a is a pointer to the memory at the beginning of the array and using == won't actually compare the contents of a with 'ab' because they aren't actually the same types, 'ab' is integer type. Also 'ab' should be... Add solution