The word radian comes from radius, which is half the diameter of a circle. If you take a radius and create an arc along the circle of the same length, you get one radian.
Okay. So what?
Continue reading
The word radian comes from radius, which is half the diameter of a circle. If you take a radius and create an arc along the circle of the same length, you get one radian.
Okay. So what?
Continue reading
Math should be fun. My observation is that it’s not taught correctly in school, so generations of students get an education, but are weak in math. I’m one of them. As I’ve aged, I’ve grown fond of math, but still struggle with it. That’s disappointing because so much of math is actually kind of cool, just not explained well.
Continue reading
C language pointers are smarter than the old BASIC peek and poke commands. A pointer knows the the type of value it’s referencing in memory, specifically how large the value is or how many bytes of storage it occupies. You can use the Code::Blocks debugger to witness such pointer intelligence.
Continue reading
Your task for this month’s Exercise is to take a timestamp string and move values from inside a string (characters) into a structure. It’s not an easy exercise, and it doesn’t have a single, best solution.
Continue reading
In last week’s Lesson, the Code::Blocks debugger helped examine the values of two variables, short int a
and short int pointer p
. Pointer p
revealed a memory location inside the computer, which you can examine by using Code::Block’s Memory dump window.
Continue reading
A timestamp is one of those tricky chunks of data that’s not really a single value. Often it’s a clutch of integers or — worse — it’s a string. To do time calculations on the timestamp, you must translate it into a more useful form.
Continue reading
Back in the microcomputer days, hobbyists used the BASIC language to program their proto-PCs. BASIC is easy to learn, sloppy and forgiving. It also hints at some low-level language attributes, primarily with the PEEK and POKE commands.
Continue reading
Five years (plus eight days) ago, this blog went public with its first post. It was several months before the companion book, Beginning Programming with C For Dummies appeared, but I wanted the blog to be well-stocked with posts for those first, eager readers.
Continue reading
A function that reads a string of 1s and 0s to generate an integer value output just screams to be called binput(). Yet, because my new version of the binbin() function (to display a binary value as a string) is called binString(), I decided to call its companion function stringBin(). Sorry to disappoint you.
Continue reading
Your task for this month’s Exercise is to code a text-processing routine that interprets the ^ character as a toggle for all-caps output. This challenge can be difficult, depending on how you interpret the toggle.
Continue reading