herrlado
11.01.2004, 23:01
--------------------------------------------------------------------------------
Moin!
Ich bin bischen durcheinander:(
Also NOR verstehe ich als von NOT und OR abgeleitet und würde in c++ so schreiben
bool a;
bool b;
bool c;
c= !(a||b);
und NAND abgeleitet von NOT und AND
bool a;
bool b;
bool c;
c= !(a&&b);
ist das so richtig oder ist es umgekehrt ?
Danke
Moin!
Ich bin bischen durcheinander:(
Also NOR verstehe ich als von NOT und OR abgeleitet und würde in c++ so schreiben
bool a;
bool b;
bool c;
c= !(a||b);
und NAND abgeleitet von NOT und AND
bool a;
bool b;
bool c;
c= !(a&&b);
ist das so richtig oder ist es umgekehrt ?
Danke