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 →

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

Conversion Character Mania: Floating Point Output

Posted on September 28, 2013 by dgookin
Reply

Perhaps the most complex and bizarre things you can format with printf() conversion characters are floating point numbers. The variety of the options can be overwhelming.
Continue reading →

Posted in Lesson | Leave a reply

Conversion Character Mania: Integer Output

Posted on September 21, 2013 by dgookin
Reply

The printf() function’s power lies in its formatting abilities, specifically the display of values. That power is vast, but the documentation showing how it works really sucks.
Continue reading →

Posted in Lesson | Leave a reply

Conversion Character Abuse

Posted on September 14, 2013 by dgookin
Reply

The printf() function is most concerned with getting the number of conversion characters — the % placeholders — to match the number of variables specified. Beyond that, it’s rather ambivalent as to whether the types match properly.
Continue reading →

Posted in Lesson | Leave a reply

The C Variable Myth

Posted on September 7, 2013 by dgookin
Reply

A variable in C is a myth. Oh, yeah, it’s a location in memory. That’s pretty much it. After declaring the variable, the compiler — and you, the programmer — pretty much rely upon faith that the variable works and can actually be useful.
Continue reading →

Posted in Lesson | Leave a reply

Min and Max

Posted on September 1, 2013 by dgookin
Reply

The C language is rather weak when it comes to array functions. In fact, as far as I know, the standard library doesn’t contain a single array function.
Continue reading →

Posted in Exercise | Leave a reply

The Month Array

Posted on August 31, 2013 by dgookin
Reply

Why present the current date as 8/31/2013 when you can express it as August 31, 2013? Because some things are easy to program and some are easy for the program’s user to read.
Continue reading →

Posted in Lesson | Leave a reply

Why Not Float All the Time?

Posted on August 24, 2013 by dgookin
Reply

What’s the point of using integers when you could simply code programs using floating-point values all the time to always get the best results? The reason is a good one, but it takes some explaining.
Continue reading →

Posted in Lesson | Leave a reply

Unique Random Numbers

Posted on August 17, 2013 by dgookin
Reply

The goal is to write code that generates random numbers, but never the same value twice. After all, if you’re coding a card game or generating lotto picks, it’s unrealistic to expect the same value appear multiple times.
Continue reading →

Posted in Lesson | Leave a reply

Pick a Card, Any Card

Posted on August 10, 2013 by dgookin
Reply

Last week’s Lesson discussed how to monitor random numbers by using an array: When a random value is drawn, it’s corresponding array element is incremented. By continuing that same thought, you can easily ensure that the same random number isn’t used when programming a card game. But first, the game itself!
Continue reading →

Posted in Lesson | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Storing and Interpreting Mouse Input
  • Where is the Mouse?
  • Pulling Numbers from a String – Solution
  • What is the Mouse Doing?
  • Pulling Numbers from a String

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