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 Big (Text Mode) Graphical Grid

Posted on June 21, 2014 by dgookin
Reply

To output graphics, you need a palette. That is, you need a buffer that’s so many pixels wide and rows high. Create the buffer, draw in the buffer, output the buffer. That’s how graphics works, both in graphics as well as text mode.
Continue reading →

Posted in Lesson | Leave a reply

Text Mode Graphics

Posted on June 14, 2014 by dgookin
Reply

Graphics programming is entirely possible in the C language.
Continue reading →

Posted in Lesson | Leave a reply

The Joy of Clang

Posted on June 7, 2014 by dgookin
Reply

If it were spelled Klang, then it might be a reference some Klingon character from Star Trek, but it’s not. Clang is one of those program names that’s a contraction. In this instance, it’s a portmanteau of C Language. It’s an über nifty command line compiler.
Continue reading →

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

Word Wrap Filter Repair

Posted on May 31, 2014 by dgookin
Reply

As a programmer, always be thinking: What can go wrong? What would be an exception? Where have I made assumptions? You can’t avoid bugs by making such challenges, but you can diminish their possibilities.
Continue reading →

Posted in Lesson | Leave a reply

Word Wrap Filter Walkthrough

Posted on May 24, 2014 by dgookin
Reply

In last week’s Lesson, I presented code that shows one way to wrap incoming streaming text. It’s not the easiest thing. Let me explain how last week’s code attempts to solve the problem.
Continue reading →

Posted in Lesson | Leave a reply

A Word Wrap Filter

Posted on May 17, 2014 by dgookin
Reply

Unlike static text, streaming text feeds into a program one character at a time. To wrap that text, you need to know all the basics about wrapping text (covered in this Lesson), but also how to concoct a filter that buffers its output.
Continue reading →

Posted in Lesson | Leave a reply

Wrapping Static Text

Posted on May 10, 2014 by dgookin
Reply

When displaying a long string of text, it’s polite — and expected — for the programmer to wrap the text. Not wrapping the text would split words at the right margin, which irritates human readers to no end.
Continue reading →

Posted in Lesson | Leave a reply

Word Wrap Philosophy

Posted on May 3, 2014 by dgookin
Reply

Way back in the day, word wrap was fascinating. It was so unique that word processors boasted about it as a feature. I’m serious! That’s because a lot of the primitive (late 1970s and early 1980s) word processing programs did not wrap text at the end of a line. Strange, but true.
Continue reading →

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

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