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 →

Translating a Timestamp – Solution

Posted on May 8, 2018 by dgookin
3

Your task for this month’s Exercise is to take a timestamp string and move values from inside a string (characters) into a structure. It’s not an easy exercise, and it doesn’t have a single, best solution.
Continue reading →

Posted in Solution | 3 Replies

Deep Inside RAM

Posted on May 5, 2018 by dgookin
Reply

In last week’s Lesson, the Code::Blocks debugger helped examine the values of two variables, short int a and short int pointer p. Pointer p revealed a memory location inside the computer, which you can examine by using Code::Block’s Memory dump window.
Continue reading →

Posted in Lesson | Leave a reply

Translating a Timestamp

Posted on May 1, 2018 by dgookin
Reply

A timestamp is one of those tricky chunks of data that’s not really a single value. Often it’s a clutch of integers or — worse — it’s a string. To do time calculations on the timestamp, you must translate it into a more useful form.
Continue reading →

Posted in Exercise | Leave a reply

Peeking and Poking with Pointers

Posted on April 28, 2018 by dgookin
3

Back in the microcomputer days, hobbyists used the BASIC language to program their proto-PCs. BASIC is easy to learn, sloppy and forgiving. It also hints at some low-level language attributes, primarily with the PEEK and POKE commands.
Continue reading →

Posted in Lesson | 3 Replies

C Blog 5th Anniversary

Posted on April 21, 2018 by dgookin
5

5th Anniversary

Five years (plus eight days) ago, this blog went public with its first post. It was several months before the companion book, Beginning Programming with C For Dummies appeared, but I wanted the blog to be well-stocked with posts for those first, eager readers.
Continue reading →

Posted in Lesson | 5 Replies

From String to Binary

Posted on April 14, 2018 by dgookin
3

A function that reads a string of 1s and 0s to generate an integer value output just screams to be called binput(). Yet, because my new version of the binbin() function (to display a binary value as a string) is called binString(), I decided to call its companion function stringBin(). Sorry to disappoint you.
Continue reading →

Posted in Lesson | 3 Replies

Highlight a Chunk of Text – Solution

Posted on April 8, 2018 by dgookin
Reply

Your task for this month’s Exercise is to code a text-processing routine that interprets the ^ character as a toggle for all-caps output. This challenge can be difficult, depending on how you interpret the toggle.
Continue reading →

Posted in Solution | Leave a reply

From Binary to String

Posted on April 7, 2018 by dgookin
Reply

In my books, I use the binbin() function to display binary values. It’s a good way to demonstrate some of the C language’s low-level bitwise functions: The binbin() function lets you see the effect of bitwise operations at a binary level, all those ones and zeros.
Continue reading →

Posted in Lesson | Leave a reply

Highlight a Chunk of Text

Posted on April 1, 2018 by dgookin
Reply

Most of the common data formats, such as CSV, XML, and JSON, use plain text to store complex data or somehow interpret that plain text as something it’s not. The programmer’s job is to translate the plain text and generate the proper type of complex data.
Continue reading →

Posted in Exercise | Leave a reply

The Standard Error Device

Posted on March 31, 2018 by dgookin
3

Oh, I could have fun with the term “standard error device.” It could be any PCs running Windows 8. [rimshot] See? Tech humor! It’s nerdy, but that’s not the point of the standard error device with regards to C programming.
Continue reading →

Posted in Lesson | 3 Replies

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