lunes, 13 de abril de 2015
Colas Circulares
The solution described requires the reuse of components of the vector
containing and deleted items. That is, when added during reach the end of the vector, begin to fill CIRCULAR QUEUE added process reach the end of the vector, begin to fill
again the initial components thereof if they are empty.
To achieve this we will handle table as if it were a "round table".
This means that we will not consider the MAX vector component as the last of it, but consider the following component to this is again the first vector.
martes, 10 de febrero de 2015
Decision structures (Visual Basic)
Visual Basic allows testing conditions and perform different operations depending on the test results. You can check whether a condition is true or false, the different values of an expression or the various exceptions that are generated by executing a series of instructions.
Undertake different actions when the value of a condition is true and when it is false.
Construction If ... Then ... Else
The If ... Then ... Else constructs allow you to test one or more conditions and execute one or more instructions on a per condition. You can test conditions and take action in the following ways:
- Run one or more instructions if a condition is True.
- Run one or more instructions if a condition is False.
- Run some instructions if a condition is True and False if other.
- Try an additional condition if a previous condition is False.
Select ... Case Construction
The Select ... Case construction evaluates an expression once and run different sets of possible values based on different instructions.
miércoles, 4 de febrero de 2015
Suscribirse a:
Entradas (Atom)