|
|
1.1 ! root 1: #print ! 2: (Section 1.5) ! 3: Write a program which copies its input to its output ! 4: doubling each character (i.e. each input character ! 5: is written twice on the output). Compile and test ! 6: it. Then type ready. Don't forget ! 7: ! 8: #include <stdio.h> ! 9: ! 10: at the beginning of your program, and ! 11: ! 12: cc x.c -lS ! 13: ! 14: to compile it. ! 15: #once #create Ref ! 16: hoboken harrison newark roseville avenue grove street ! 17: east orange brick church orange highland avenue ! 18: mountain station south orange maplewood millburn short hills ! 19: summit chatham madison convent station morristown ! 20: new providence murray hill berkeley heights ! 21: gillette stirling millington lyons basking ridge ! 22: bernardsville far hills peapack gladstone ! 23: #once #create Answer ! 24: hhoobbookkeenn hhaarrrriissoonn nneewwaarrkk rroosseevviillllee aavveennuuee ggrroovvee ssttrreeeett ! 25: ! 26: eeaasstt oorraannggee bbrriicckk cchhuurrcchh oorraannggee hhiigghhllaanndd aavveennuuee ! 27: ! 28: mmoouunnttaaiinn ssttaattiioonn ssoouutthh oorraannggee mmaapplleewwoooodd mmiillllbbuurrnn sshhoorrtt hhiillllss ! 29: ! 30: ssuummmmiitt cchhaatthhaamm mmaaddiissoonn ccoonnvveenntt ssttaattiioonn mmoorrrriissttoowwnn ! 31: ! 32: nneeww pprroovviiddeennccee mmuurrrraayy hhiillll bbeerrkkeelleeyy hheeiigghhttss ! 33: ! 34: ggiilllleettttee ssttiirrlliinngg mmiilllliinnggttoonn llyyoonnss bbaasskkiinngg rriiddggee ! 35: ! 36: bbeerrnnaarrddssvviillllee ffaarr hhiillllss ppeeaappaacckk ggllaaddssttoonnee ! 37: ! 38: #user ! 39: a.out <Ref >xxx ! 40: #cmp Answer xxx ! 41: #succeed ! 42: /* One way: */ ! 43: ! 44: #include <stdio.h> ! 45: ! 46: main() ! 47: { ! 48: int c; ! 49: ! 50: while ((c = getchar()) != EOF) { ! 51: putchar(c); ! 52: putchar(c); ! 53: } ! 54: } ! 55: #log ! 56: #next ! 57: 5.1e 5 ! 58: 5.3e 2
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.