ASCII refers to character codes from zero through 127. These codes are interpreted identically on all modern computers. They represent basic alphabetic, numeric, and symbol characters.
Continue reading
Category Archives: Lesson
Name Your Variables
As you sit and madly pound out code, variable names are probably not at the top of your list of things to do better. I tend to use x for my loops, c or ch for characters, and other variables, including a, b, and c. This is an acceptable approach, but for larger programs such variable names not doing you any favors.
Continue reading
A Few Pointers on Structure Pointers
Structures aren’t really scary. Pointers are scary. Obviously, a good way to make structures more terrifying it so throw some pointers at them.
Continue reading
Struc(Structures)tures
A structure is capable of containing any other type of C language variable. That includes other structures.
Continue reading
Breaking Down Structures
In the C language, struct is a variable type, but do you declare a structure or define a structure? That one has me perplexed.
Continue reading
Lovely, Weird Assignment Operators
Some programmers find it charming that C can be so frustratingly obscure. In fact, a lot of the language’s perplexing nature is simply a reflection of its efficiency.
Continue reading
Roll Your Own String Search Function
How do you search for one string within another string? Brute force! That means, you size up each character one at a time until you find the perfect match.
Continue reading
Search for That String Again
It’s straightforward to use the strstr() and related C library searching functions to locate a string in a pile of text. To locate the next occurrence of that string takes a bit more work.
Continue reading
More String-Searching Functions
The C library is teaming with string-searching functions. The most basic is strstr(), which I discussed in last week’s Lesson. That function has some brothers and sisters.
Continue reading
Finding Text with strstr()
The programming universe is teaming with search algorithms. In fact, searching for stuff has become so commonplace computer users casually take it for granted. Things weren’t always that way, but the programming algorithms behind the search remains the same.
Continue reading