Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

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

Category Archives: Exercise

Post navigation

← Older posts
Newer posts →

A Million Ways to Code in the West

Posted on July 1, 2014 by dgookin
Reply

Actually, it doesn’t matter west, east, north, or south, as multiple solutions exist for any programming puzzle.
Continue reading →

Posted in Exercise | Leave a reply

One Word at a Time

Posted on June 1, 2014 by dgookin
Reply

A filter is a command line tool that takes input, modifies it, and generates output. This month’s Exercise is to create such a filter, one that takes text input and spews it out one word at a time.
Continue reading →

Posted in Exercise | Leave a reply

Truncate Well That String

Posted on May 1, 2014 by dgookin
Reply

Nothing can be more disconcerting than text lopped off before the end of the li
Continue reading →

Posted in Exercise | Leave a reply

A Simple Calculator

Posted on April 1, 2014 by dgookin
Reply

Of course computers can do math! Of course, programming has some math in it! Yet one reason that programmers are not necessarily geniuses at math is that it’s the computer that does the math, not the programmer. To prove that truth, why not code your very own calculator program?
Continue reading →

Posted in Exercise | Leave a reply

The Multi-Dimensional Array Grid

Posted on March 1, 2014 by dgookin
Reply

Data is is just data. Organize that data and it becomes information. When it comes to organizing data in the C language, the first tool you probably learned was the array.
Continue reading →

Posted in Exercise | 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

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

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

Test Your Formatting Knowledge

Posted on November 1, 2013 by dgookin
Reply

In late September and early October, I wrote a series of lessons on how the various printf() formatting commands are used. Now it’s time to put your skills to the test.
Continue reading →

Posted in Exercise | Leave a reply

Allow Me to Squeeze In Here…

Posted on October 1, 2013 by dgookin
Reply

When it comes to editing text, the concept of copy and paste is an old one: You select a chunk of text, choose its new location, then paste in the text. The surrounding text jiggles around to make room. Neat and tidy.
Continue reading →

Posted in Exercise | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • What is the Largest Value?
  • Accessing the Mouse in a Terminal Window
  • Storing and Interpreting Mouse Input
  • Where is the Mouse?
  • Pulling Numbers from a String – Solution

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