Thinking in C and *nix (CSC 295/282 2014S) : EBoards

CSC295 2014S, Class 04: Decoding Scripts


Overview

Preliminaries

Background

Why did I give you this assignment?

Analysis

What are things the user does in the shell that may cause strange things in the typescript?

What do you see in the file that corresponds to those actions?

How do you look at the contents of a file, anyway?

What should you do with the strange characters in the file?

You'll need a buffer in order to deal with backspace characters. How big should it be?

What complications are we ignoring in this analysis?

Algorithm

Given your analysis, what algorithm woud you write? (Pseudocode)

Inputs

Work in teams of 3/4

Create some typescripts that you expect to be hard to process.

Try one of the existing soln's.

Implementation

Work in teams of 3/4

Write your own solution, based on the algorithm you designed as a class.

Copyright (c) 2013-14 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.