Logic AND between some strings

Поиск
Список
Период
Сортировка
Искать

Logic AND between some strings

От:
yagru_alvarez <jmalvarez@estudiantes.uci.cu>
Дата:
I want to make a Logic AND between some strings of 0s and 1s .. Here
you have an example:

1-> 01100010
2-> 00001100

I wanto to make a LOGIC AND between 01100010 and 00001100.

I' m working with C++, I need some code to have an idea about how I
can perform that.

Re: Logic AND between some strings

От:
Vick Khera <vivek@khera.org>
Дата:
On Mon, Mar 7, 2011 at 10:14 AM, yagru_alvarez
 wrote:
> I wanto to make a LOGIC AND between 01100010 and 00001100.
>
> I' m working with C++, I need some code to have an idea about how I
> can perform that.
>

You want to do this in C++ or in SQL?  In SQL it looks like this:

select b'01100010' & b'00001100';

If you want to do this in C++, ask your teacher for help with your homework.
FAQ