Oh man, school's tough. School's really tough. Now that semester 3 is over, I can finally catch up on all the sleep I missed out on. No more falling asleep while in the midst of studying, yes!!
We have been given 2 short weeks of break - about enough time for me to start a new short project! Hopefully this is one project I can finish before school starts =S.
Wednesday, August 24, 2011
Wednesday, February 23, 2011
References and pointers and const
Gahh!!! Mid-terms tomorrow. Everyone's panicking about const-ness and references!
Thought I'd write some nonsense for practice.
oh boy so nervous. XD
// chinykian
// 23 Feb 2011
#include ‹iostream›
const int gInt1 = 10;
const int gInt2 = 20;
const int*const& MyFunc (const int*& pI)
{
pI = &gInt2;
return pI;
}
const int*const& (*pFP) (const int*& pI) = MyFunc;
int main(void)
{
const int*const& (**const&ppFP) (const int*& pI) = &pFP;
const int* pI = &gInt1;
std::cout << *((*ppFP)(pI)) << std::endl;
return 0;
}
Thought I'd write some nonsense for practice.
oh boy so nervous. XD
// chinykian
// 23 Feb 2011
#include ‹iostream›
const int gInt1 = 10;
const int gInt2 = 20;
const int*const& MyFunc (const int*& pI)
{
pI = &gInt2;
return pI;
}
const int*const& (*pFP) (const int*& pI) = MyFunc;
int main(void)
{
const int*const& (**const&ppFP) (const int*& pI) = &pFP;
const int* pI = &gInt1;
std::cout << *((*ppFP)(pI)) << std::endl;
return 0;
}
Sunday, January 9, 2011
Actionscript Awards 2010
Last Friday was the Actionscript Awards 2010 Ceremony and winners and guests alike were invited for the prize presentation. Everything went as expected until one organizer mentioned that the prize winners were to present their games to the audience.
Video courtesy of Wei Liang.
Video courtesy of Wei Liang.
Subscribe to:
Posts (Atom)