Recent content by 0131313131313
-
0
Checking if a circular queue is full
Actually, I have this code for checking whether a queue is empty or not:- bool Queue::empty() { return (myBack == myFront); } Is it wrong? Also, I don`t understand the use of the mod operator, what does it represent? I understand it solves a problem (that we can`t simply say...- 0131313131313
- Post #3
- Forum: Programming and Computer Science
-
0
Checking if a circular queue is full
So, my teacher comes to the lecture, writes the notes on the board... and then says: "from now on this part is intuitive"... he means this part: (myFront != (myBack + 1) % max) of the following (C++) code:- void Queue::addQ (int x) { if (myFront != (myBack + 1) % max) { ...- 0131313131313
- Thread
- Circular Queue
- Replies: 5
- Forum: Programming and Computer Science
-
0
Undergrad How does this number system conversion algorithm work?
50 | 0 25 | 1 12 | 0 6 | 0 3 | 1 1 | 1 0 how does it work? (I know how to use the algorithm... my question is about how it can do the conversion)- 0131313131313
- Thread
- Algorithm System Work
- Replies: 5
- Forum: Linear and Abstract Algebra
-
0
Undergrad What Are the Mysteries of Boolean Algebra Beyond Binary Values?
http://img710.imageshack.us/img710/2314/booleanalgebra.jpg AFAIK logic is all about "T"/"F" or 0/1, and boolean algebra is all about logical manipulation. But there seems to be something wrong since there is a boolean algebra with more that 2 objects in it`s set. So, can I have some...- 0131313131313
- Thread
- Algebra Boolean algebra
- Replies: 3
- Forum: Linear and Abstract Algebra
-
0
Undergrad Precedence of logical operators
Thank you for the answer.- 0131313131313
- Post #3
- Forum: Set Theory, Logic, Probability, Statistics
-
0
Undergrad Precedence of logical operators
based on what is it concluded that this is operation precedes that operation?- 0131313131313
- Thread
- Operators
- Replies: 3
- Forum: Set Theory, Logic, Probability, Statistics