خرید بک لینک

Vote count: 0

How can I check if the value in cell #0 is equal to the value in cell #1? I am trying to write code equivalent to:

if(a == b)
{
    //do stuff
}
else
{
    //do something else
}

I have read Brainfuck compare 2 numbers as greater than or less than, and the second answer gave me a general idea of what I'd need to do, but I caot figure it out. (That solution gives if a < b, else.)

I am thinking I need to do something along the lines of decrementing both values, and if they reach 0 at the same time, then they are true. But I keep getting stuck at the same exit point every time I think about it.

How can I check if two cells are equal in brainfuck?

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 1 خرداد 1395 ساعت: 3:16

صفحه بندی