C++ AUTOMATION LABExplore all five parts

Beginner workbook · Part II

Build tools.
Understand every step.

Text Processing and Data Cleaning

Learn C++17 by building small local tools, inspecting their results, and extending them with confidence.

Get Part II — $5Read the free sample

200 pages · 6 runnable programs · 24 practice cases

C++ Automation Lab Part II workbook cover

Inside this volume

Six tools. Four cases each.

01

Trim Lines

Cleaning must have a precise definition. This tool strips only ASCII spaces and tabs from both ends. It preserves internal spacing and blank records. Explicit scope avoids accidentally changing meaningful text.

02

Contains Filter

A literal substring search is predictable and simpler than a regular expression when you need exact text. The keyword is required. Matching is case-sensitive and an empty keyword matches every record.

03

Unique Lines

Use a set when uniqueness and sorted output are the desired contract. A set stores one copy of each key. This changes input order, which is appropriate for a sorted register but wrong for a chronological log.

04

Word Counts

A map associates each key with a value. Stream extraction splits on whitespace and leaves punctuation attached. Define tokenization before interpreting a word frequency report.

05

Split Fields

A delimiter format needs rules for empty fields. This minimal format uses a vertical bar and has no quoting or escaping. It preserves trailing empty fields. It is deliberately not a general CSV parser.

06

Replace Literal

Search and replace should state whether inserted text is searched again. This tool advances beyond the replacement so replacing a with aa terminates. An empty search token is rejected to prevent an unbounded insertion loop.

Read, run, debug, extend.

Each eight-page case includes a lesson, fixture setup, complete source, expected output, a debugging task, verification, an extension, and a handoff record.

A hands-on workbook with writing space. The 200 pages include tracing, planning, and reflection areas. Four cases intentionally revisit each program with different input. Download the sample to see the format before buying.

Your purchase includes the PDF and companion ZIP with six C++ source files, case definitions, expected results, and an optional Python test runner. This is a written workbook. Later volumes build on earlier skills. A C++17 compiler is required.

From first build to repeatable workflow

The five-part series

Each volume costs $5 USD and is sold separately.

Try the smallest passing example first.

Windows and VS Code setup guidance. Standard-library tools for trusted local ASCII lab fixtures. No desktop macro recording or browser automation is included.

Get the workbook — $5