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 →

Graphing in Text Mode, Part III: Better Lines

Posted on July 12, 2014 by dgookin

After you create a point-plotting function, the next obvious graphical function to code is the line. Whether you’re graphing in text mode or using pixels, you’ll quickly find that two conditions exist where a line function just can’t draw a line.
Continue reading →

Posted in Lesson

Graphing in Text Mode, Part II: Lines

Posted on July 5, 2014 by dgookin
Reply

So far in my text mode graphics demonstration, I’ve shown you code that presents a graphical grid, plus the plot() function that “draws” pixels in the grid. These are the basic building blocks you need to do graphics in text mode. The next step is to craft functions that create basic geometric shapes. The most basic of those is the line.
Continue reading →

Posted in Lesson | Leave a reply

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

Graphing in Text Mode, Part I

Posted on June 28, 2014 by dgookin
Reply

In text mode graphics, a char buffer serves as the drawing board, allowing you to plot x and y coordinates. Before any plotting takes place, however, you need a proper canvas.
Continue reading →

Posted in Lesson | Leave a reply

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

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Recursion Until Death!
  • It’s All Greek! – Solution
  • Happy 250th, USA!
  • It’s All Greek!
  • Ctype Function: isxdigit()

Recent Comments

  • dgookin on It’s All Greek! – Solution
  • Chris Webb on It’s All Greek! – Solution
  • dgookin on Happy 250th, USA!
  • Chris Webb on Happy 250th, USA!
  • dgookin on Happy 250th, USA!

Meta

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

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress