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:31] 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 37: | Line 38: | ||
- | - [[http://www.google.com|Google]] | + | - [[http://www.google.com|Google]] |
- | - [[http://www.wikipedia.com|Wikipedia]] | + | - [[http://www.wikipedia.com|Wikipedia]] |
- | - [[http://www.facebook.com|Facebook]] | + | - [[http://www.facebook.com|Facebook]] |
- | - [[http://cs.curs.pub.ro|CSCurs]] | + | - [[http://cs.curs.pub.ro|CS Curs]] |
Line 54: | Line 55: | ||
+ | * 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> |