Author Archives: Faye Williams

C++ Eclipse Masterclass Now Open!

It’s HERE! This morning at 9am GMT the C++ Eclipse Masterclass opened for enrolment. Hurrah! I have poured my heart and soul into creating this course, and I am so proud to finally be launching it today. It opens with an early bird discount which runs until midnight GMT on 1st June, so if you […]

atoi and itoa

atoi and iota seem like perfect partners. atoi is the ‘ascii to integer’ function and itoa is the reverse, the ‘integer to ascii’ function. You would use atoi to convert a string, say, “23557” to the actual integer 23557. Similarly, you would use itoa to convert an integer, say 44711, to the equivalent string “44711”. […]

Fibonacci | Recursively or Not?

You’re probably all aware of the Fibonacci number sequence. Starting with 0 and 1, the next number is determined by the sum of the previous two numbers, so the sequence begins: 0, 1, 1, 2, 3, 5, 8, 13, 21, … This is a mathematical concept, and it is defined by a “recurrence relation” (that’s […]

View A Backtrace For All Threads With GDB

Debugging multi-threaded programs can be really tricky. GDB however, will always do its best to rescue you from whatever horrible bug you’re currently looking at. Today I wanted to show you a really nice command for viewing all the threads in your program. This particular command is¬†especially helpful if you ever need to diagnose a […]