Archives - Posts written in June, 2008
Pascal Triangle ChallengeMay 29th / 6 Comments »
A simple challenge for c/c++ fans, use only 2 variable and 2 for loop to print a pascal triangle looks as bellow ... Continue
swap variable questMay 28th / 5 Comments »
This is an interesting quest given by my friend who working in Intel, during our conversation online. How to swap two variables ? Let say A=123 and ... Continue
simple singleton classMay 26th / 6 Comments »
Singleton is one of the common design pattern used to make a class object exist only one instant. I have read some books illustrate the ... Continue
nanosleep is better than sleep and usleepMay 25th / 1 Comment »
Don't know whether you aware of the example code at Tap the interrupt signal, I am using sleep(1) within endless loop at the first sample ... Continue
Tap the interrupt signalMay 20th / 4 Comments »
When you hit control+c, you are actually send a SIGINT ( Interrupt signal ) to your program. By default, your program will be terminated after ... Continue
