python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Bitwise not in python over unsigned numbers
I want to do a bitwise not in Python, but withouth taking care of the sign, as C would do. For example:
>>> x = 4
>>> y = ~x
>>> bin(x)
'0b100'
>>> bin(y)
'0b101'
...

Dan
Votes: 0
Answers: 2
Calculate time difference in C++(hours, minutes, seconds) with type unsigned int
For one of my college classes using C++, we have to implement a class that creates time objects and that can do different arithmetic functions (+, -, -=, +=, etc...) between two different times.
My te...
itsthea
Votes: 0
Answers: 1