Tulemus siis selleine. Jeesus vist t6usis v6i midagi sellist. Halleluuja! Aamen kah 🙂
Author: margusja
Projekt A8 D2 stange
C++ (cpp) lihtne UI
Pole ammu c++ maailmas midagi teinud. Alati on hea võtta endale eesmärk. Mina võtsin eesmärgiks luua lihtne mäng. Milline mäng seda ma veel ei tea. Kindel oli see, et ma vajasin kasutajaliidest. Kuna alustada on (mulle vähemalt meeldib) ilma väga suurte graafiliste objektideta siis minu kasutajaliides on käsurea oma. Aga asjast.
Hetkel koosneb app neljast failist:
UI siis selline:
Meil on asjad paigas
Lihtsalt ĂĽks pisaraid kiskuv lugu
The choice is yours 🙂
“The Sweet Hello, The Sad Goodbye”
Red like fire was the day I met you.
I tell you now, there are no regrets.
In this room there are many memories.
Some are good, some I try to forget.
I thought we were the chosen ones,
who were supposed to fly.
We’re very much the same, you and I.
The sweet hello, the sad goodbye.
Still waiting to get hurt, time after time.
The sweet hello, the sad goodbye.
When love lies in our hands, we seem to run and hide.
And I can’t help but wonder why.
The sweet hello, the sad goodbye.
My heart was like a runaway train, babe.
I don’t believe I’ve ever felt more alive.
In this room I hear voices linger.
We never talked about the price.
You know you’re not the only one,
who knows how to cry.
We’re very much the same, you and I.
The sweet hello, the sad goodbye.
Still waiting to get hurt, time after time.
The sweet hello, the sad goodbye.
When love lies in our hands, we run away and hide.
And I can’t help but wonder why.
The sweet hello, the sad goodbye.
The sweet hello, the sad goodbye.
We’re very much the same, you and I.
The sweet hello, the sad goodbye.
Still waiting to get hurt, time after time.
The sweet hello, the sad goodbye.
When love lies in our hands, we run away and hide.
And I can’t help but wonder why.
The sweet hello, the sad goodbye.
Goodbye.
The sweet hello, the sad goodbye.
The sweet hello, the sad goodbye.
The sweet hello, the sad goodbye.
Oil on the road at 150kph
Juhuslikud pildid
Medieval helpdesk
No ei ole lihtne.
Teen ettepaneku luua helpdesk day kus siis näiteks kasutajad lähevad ja kingivad Elioni helpdeskile lilli.
[kml_flashembed movie="http://www.youtube.com/v/pQHX-SjgQvQ" width="425" height="344" allowfullscreen="true" fvars="fs=1" /]
Assembler hints
Mõned hindid endale mis ikka ja jälle antud keele harva kasutamise tõttu vahel meelest lähevad.
Tegu on siis GNU assembler (as)
value:
.int 10, 20, 30
...
_start:
movl value, %eax # Liigutab label value esimese väärtuse (10) registrisse eax
...
Pointer
value:
.int 10, 20, 30
...
_start:
movl $value, %eax # Liigutab mäluaadressi kus asub label value registrisse eax
...
movl %eax, %edi # Liigutab eax registri väärtuse registrisse edi
...
...
movl %eax, (%edi) # Liigutab registri eax väärtuse mäluaadressile mis on registris edi
...
...
movl %eax, 4(%edi) # Liigutab registri eax väärtuse (mäluaadressile+4byte) mis on registris edi
...
...
movl (%esi), %eax # Liigutab registril esi asuvalt mäluaadressil oleva data registrisse eax
...