Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

  • C For Dummies (home)
  • History
  • Series
  • Supplemental
  • Blog Miscellany

Post navigation

← Older posts
Newer posts →

An Array of Pointers

Posted on February 8, 2014 by dgookin
Reply

Here’s a scary thing for most people: **blorf. No, not the name blorf, although it’s one of my favorite made-up words. What drives programmers insane — and all programmers, not just C programmers — are those double disaster asterisks.
Continue reading →

Posted in Lesson | Leave a reply

The Month Program, Phase V

Posted on February 1, 2014 by dgookin
Reply

It’s all come to this: Gathering up the individual functions necessary to code a program that outputs the current month, formatted, with the proper number of days for February. Coincidentally, this post is published in February.
Continue reading →

Posted in Lesson | Leave a reply

More Centering Challenges

Posted on February 1, 2014 by dgookin
Reply

Centering text is one of those basic things many programmer’s have to deal with. Yet once you write the function, you might forget about something I called bounds checking. After all, who would ever pass a string to a centering function where that string would be wider than the field in which it’s centered?
Continue reading →

Posted in Exercise | Leave a reply

The Month Program, Phase IV

Posted on January 25, 2014 by dgookin
Reply

Last week’s Lesson demonstrates a pretty decent calendar program. It works for every month of the year that has 31 days. Obviously that’s not every month, so more fine tuning must be done, especially to deal with the variable number of days in February.
Continue reading →

Posted in Lesson | Leave a reply

The Month Program, Phase III

Posted on January 18, 2014 by dgookin
Reply

With an algorithm that properly returns the first day of the month, the next step in creating a calendar is to display that first week, and then all subsequent weeks. Sounds easy, right?
Continue reading →

Posted in Lesson | Leave a reply

The Month Program, Phase II

Posted on January 11, 2014 by dgookin
Reply

To create a calendar, you start with the first day of the month. Knowing which weekday is the first of the month is vital to your success.
Continue reading →

Posted in Lesson | Leave a reply

The Month Program, Phase I

Posted on January 4, 2014 by dgookin
Reply

Unix features a handy command line tool called cal. When typed by its lonesome, cal spits up a text calendar on the terminal window. Or you can follow cal with a month and year value to see a specific month, or just the year value to see a year’s calendar. It’s nifty!
Continue reading →

Posted in Lesson | Leave a reply

Center Yourself

Posted on January 1, 2014 by dgookin
Reply

It’s not the first thing you think of when you design output. No, it’s one of those afterthoughts, those numerous, “Hey, I could do this” moments that programmers experience time and again. In this case, the concept is centering a chunk of text.
Continue reading →

Posted in Exercise | Leave a reply

Build Your Own String

Posted on December 28, 2013 by dgookin
Reply

I can think of three rules for concocting your own string in the C language.
Continue reading →

Posted in Lesson | Leave a reply

That Terminating \0

Posted on December 21, 2013 by dgookin
Reply

Text stored on a computer consists of various displayable characters and perhaps some control codes, such as a tab (\t) or the newline (\n). The string has a starting point, but determining where and how the string ends differs depending on what is storing or reading the string.
Continue reading →

Posted in Lesson | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Reading Raw Input
  • Cooked or Raw?
  • Is It a “Real” Triangle? – Solution
  • Getting and Setting the File Position Indicator
  • Is It a “Real” Triangle?

Recent Comments

  • dgookin on Reading Raw Input
  • Chris Webb on Reading Raw Input
  • dgookin on Is It a “Real” Triangle? – Solution
  • Chris Webb on Is It a “Real” Triangle? – Solution
  • dgookin on A Colorful Hexdump

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress