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: Lesson

Post navigation

← Older posts
Newer posts →

Looping Variables End Value

Posted on October 22, 2016 by dgookin
Reply

I received a question on a looping variable and why its value after the loop isn’t the same as the ending value of the loop. It’s a puzzling issue I remember from when I first learned to program, but one that you can understand once you figure out what the loop does.
Continue reading →

Posted in Lesson | Leave a reply

Hunting for a Library

Posted on October 15, 2016 by dgookin
Reply

To add more functionality to the C language, you mix in another library. The library contains routines (functions) that let you control specific hardware, manipulate data, work with graphics, and a host of other capabilities beyond the standard C library.
Continue reading →

Posted in Lesson | Leave a reply

Linking a Library in Code::Blocks

Posted on October 8, 2016 by dgookin
Reply

I’ve not installed Code::Blocks on a Linux computer, but for a moment I’ll pretend that such an installation has the same issue I described in last week’s Lesson: You must manually link in the C language math library to create any program that uses a math.h function.
Continue reading →

Posted in Lesson | Leave a reply

Link in the Math Library

Posted on October 1, 2016 by dgookin
Reply

Recently, I had question posed to from a reader from Norway. He was working his way through my book and found that one of the programs wouldn’t compile on his Linux computer. The problem was that the C language math library isn’t automatically linked. The effect is that a linker error appears upon compiling.
Continue reading →

Posted in Lesson | Leave a reply

Fuzzy Matching, Now With Forgiveness

Posted on September 24, 2016 by dgookin
Reply

Even when you add fudge to a matching system, occasionally that odd bit of data — the outlier — can wreck an otherwise close match. The question is, how many of those mismatches does your code allow?
Continue reading →

Posted in Lesson | Leave a reply

Fuzzy Matching with Percentage Variation

Posted on September 17, 2016 by dgookin
Reply

A fuzzy match that uses discrete amount of fudge might not yield a match, especially when the values cover a wide range. To better make the match work, set a percentage variation instead.
Continue reading →

Posted in Lesson | Leave a reply

Fuzzy Matching Tolerance

Posted on September 10, 2016 by dgookin
Reply

Comparing values is a discrete process; an if comparison is absolute. The result is either true or false. Never is the result perhaps or somewhat — unless you add some fudge to the comparison.
Continue reading →

Posted in Lesson | Leave a reply

Non-Identical Yet Very Similar

Posted on September 3, 2016 by dgookin
Reply

Computer’s are notoriously obedient and serious. They’re exact. If you give them inaccurate instructions or bad data, the computer does its job without question. But the real world isn’t binary and often times it’s necessary to add some forgiveness into your code.
Continue reading →

Posted in Lesson | Leave a reply

That’s Not the Input I Asked For

Posted on August 27, 2016 by dgookin
Reply

I recently had a reader submit a question regarding input. He wanted to write code that would read a character and display that character’s ASCII code value. It sounds like a simple program, but you must understand variable types and the scanf() function’s peculiarities to properly code it.
Continue reading →

Posted in Lesson | Leave a reply

Basic Output

Posted on August 20, 2016 by dgookin
Reply

The typical first program taught to anyone learning C (or any other programming language) is Hello, world! It’s fun, which sets up false expectations, but it’s also genius.
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 Recursion Until Death!
  • Chris Webb on Recursion Until Death!
  • dgookin on It’s All Greek! – Solution
  • Chris Webb on It’s All Greek! – Solution
  • 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