+ 4
How to be good at programing logic ????
5 Antworten
+ 7
You can use these Boolean simplification methods to simplify any complex logic in your programs:
Commutative:
a && b == b && a
a || b == b || a
Associative:
a && (b && c) == (a && b) && c == a && b && c
a || (b || c) == (a || b) || c == a || b || c
Distributive:
a && (b || c) = a && b || a && c
Miscellanea:
a && false == false
a && true == a
a && a == a
a && !(a) == false
a || false == a
a || true == true
a || a == a
a || !(a) == true
!(!(a)) == a
a || a && b == a
a || !(a) && b == a || b
(a && b) && (a && c) == a || b && c
+ 4
I want to make PC programs and I am learning C++
+ 2
what kind of programs do you want to make?
+ 2
So, I always believe that is good to learn logic praticing logic, so if you want to make PC programs and you are crazy enough to like native API and how programming really is, study and program with native API of the OS(I do this way)... but if you are not this crazy, you can pick a graphics library and make tests and study too, there are SFML, SDL, Qt, WxWidgets... a variety of them...
+ 1
use scratch
https://scratch.mit.edu/