summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/C/L5.1f
blob: 7ca40a0a7caa60e85581d0e9e6d7be64f72fbb51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#print
(Section 1.5)
Write a program to replace each tab by the
three-character sequence >, backspace, -,
which prints as ->.  The program should also replace
each backspace by the analogous sequence <-.
Compile it, test it, then type ready.
#once #create Ref
This contain s a back space and a	tab.
#once #create Ref1
This contain <-s a back <-space and a>-tab.
#user
a.out <Ref >test
#cmp test Ref1
#log
#next
5.1g 10