Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
participants:ioan-stan [2012/06/11 22:35] istan |
participants:ioan-stan [2012/06/11 23:42] istan |
||
---|---|---|---|
Line 1: | Line 1: | ||
= Ioan-Mihail Stan = | = Ioan-Mihail Stan = | ||
+ | {{ :participants:dscf2978.jpg?350|}} | ||
- | * **Nume complet**: Stan Ioan-Mihail | + | * **Nume complet**: Stan Ioan-Mihail |
* **Alias-uri**: John | * **Alias-uri**: John | ||
* **Data/Locul naşterii**: 7 iunie 1992, Bucureşti | * **Data/Locul naşterii**: 7 iunie 1992, Bucureşti | ||
Line 52: | Line 53: | ||
|Personalitate IT preferată | Dennis Ritchie| | |Personalitate IT preferată | Dennis Ritchie| | ||
|Companie preferată | IBM| | |Companie preferată | IBM| | ||
+ | |||
+ | |||
+ | * Queue from LinkedList: | ||
+ | <code> | ||
+ | void Queue<T>::enqueue(struct proces<T> e) | ||
+ | { | ||
+ | this->queueList.addLast(e); | ||
+ | } | ||
+ | template <typename T> | ||
+ | struct proces<T> Queue<T>::dequeue() | ||
+ | { | ||
+ | struct proces<T> x; | ||
+ | x.pid = this -> queueList.pFirst -> value.pid; | ||
+ | x.timp_aparitie = this -> queueList.pFirst -> value.timp_aparitie; | ||
+ | x.durata = this -> queueList.pFirst -> value.durata; | ||
+ | x.prioritate = this -> queueList.pFirst -> value.prioritate; | ||
+ | this -> queueList.removeFirst(); | ||
+ | return x; | ||
+ | |||
+ | } | ||
+ | </code> |