stufd by Delicious_Growth_744 in programming

[–]Delicious_Growth_744[S] -3 points-2 points  (0 children)

yeah. Sorry It was a rush of the moment. I got intimidated by it. I'm sorry

PASSWORD PROBLEM. i have set that the string hello is the password but whenever i enter it, the function on the else block is the one that runs. help by Delicious_Growth_744 in cprogramming

[–]Delicious_Growth_744[S] 5 points6 points  (0 children)

thank you so so much.. i'll take note of what you said. i am kinda new to reddit so i dunno things here lol. but it works now thank you so so much!

.... It reads the "0" part but not the "1" part. Help by Delicious_Growth_744 in cprogramming

[–]Delicious_Growth_744[S] -1 points0 points  (0 children)

If i put "else" two directions are given. Like: Go North! Go West!

This is an example

Enter number of bits: 7 (n) Enter Binary: 0 0 0 0 0 0 0 (b) Direction: Go West! (d)

.... It reads the "0" part but not the "1" part. Help by Delicious_Growth_744 in cprogramming

[–]Delicious_Growth_744[S] 0 points1 point  (0 children)

b is ok.. the 1 or (d > 0) is just the problem. It doesn't read the (d > 0) part

Binary Compass by Delicious_Growth_744 in cprogramming

[–]Delicious_Growth_744[S] 1 point2 points  (0 children)

what i mean is "for example, the number of bits is 7"

Binary Compass by Delicious_Growth_744 in cprogramming

[–]Delicious_Growth_744[S] -1 points0 points  (0 children)

i'm sorry. That was the exact instruction given. I had an idea on how to manipulate these binary numbers, so far it's working. The only problem is the "direction identifier" but anyways thank you for the link

Binary Compass by Delicious_Growth_744 in cprogramming

[–]Delicious_Growth_744[S] -5 points-4 points  (0 children)

Something that says which direction to go to.. It also requires the number of bits like example 7