Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

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

Author Archives: dgookin

Post navigation

← Older posts
Newer posts →

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

The Time I Won The Programming Contest

Posted on December 14, 2013 by dgookin
Reply

It was a simple contest: Write code that displays the first 100 prime numbers. The person who wrote the fastest code won.
Continue reading →

Posted in Lesson, Philosophy | Leave a reply

Variable Tab Width, Part II

Posted on December 7, 2013 by dgookin
Reply

Last week’s Lesson discussed the tab character and how it’s used to line up text in a terminal window. This Lesson shows you how such a calculation is made and coded.
Continue reading →

Posted in Lesson | Leave a reply

Numbers With Commas

Posted on December 1, 2013 by dgookin
Reply

As a programmer, you’re used to seeing values like 1000 or 1234999. Your users aren’t. They prefer to see values presented as 1,000 or 1,234,999.01. Or, in Europe the format may look like this 1.000 or 1.234.999,01.
Continue reading →

Posted in Exercise | Leave a reply

Variable Tab Width, Part I

Posted on November 30, 2013 by dgookin
Reply

The tab character, 0x08 or ^I (Control-I), is always the same width, no?
Continue reading →

Posted in Lesson | Leave a reply

Array Zing Hell

Posted on November 23, 2013 by dgookin
Reply

An array is a queue of values, all stored as one compact unit with a handy reference method. As you study arrays, especially when you get into pointers, you discover something interesting about the array’s first element.
Continue reading →

Posted in Lesson | Leave a reply

Make a New String On-The-Fly

Posted on November 16, 2013 by dgookin
Reply

Never underestimate the power of the printf() function. It has amazing abilities to format output. And don’t forget about printf()‘s lesser-known cousin, sprintf(). It can do amazing things with strings.
Continue reading →

Posted in Lesson | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Code Page 437
  • Dumping the Screen in W-I-D-E Color
  • Which is Greatest? – Solution
  • Dumping the Screen in Color
  • Which is Greatest?

Recent Comments

  • dgookin on Code Page 437
  • Chris Webb on Code Page 437
  • dgookin on Code Page 437
  • M.Stumpfl on Code Page 437
  • dgookin on Dumping the Screen in W-I-D-E Color

Meta

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

Copyright © 1997-2025 by QPBC.
All rights reserved

Proudly powered by WordPress