代码搜索:L
找到约 10,000 项符合「L」的源代码
代码结果 10,000
www.eeworm.com/read/101082/6243385
2b l32.2b
#print
Or, to take another example, the command
s/h./ar/
would turn the word "that" into "tart": the '.' matches
the 'a'. What would that command change the
word "what" into? Reply "answer WORD" w
www.eeworm.com/read/101082/6243387
1b l54.1b
#print
The fact that the system remembers the last regular expression
it had is particularly useful when the regular expression is
complex. Suppose, for example, you know that the
words "first" and "
www.eeworm.com/read/101082/6243392
2b l5.2b
#print
(Section 1.5)
Write a program which reads a character from its
input and tests whether that character is larger than
100 in numeric value. If so, read two more
characters, and print the value
www.eeworm.com/read/101082/6243393
1c l5.1c
#print
(Section 1.5)
Write a program which reads one character from
its input; if that character is ? it prints "yes",
otherwise it prints "no".
Compile it, test it, and then type ready.
#once #create
www.eeworm.com/read/101082/6243397
1b l15.1b
#print
Write a program that reads in lines, and prints each out
in reverse order (except that the newline should be
at the end).
Thus the line
cat food
should come out as
doof tac
Compile it and run i
www.eeworm.com/read/101082/6243400
1f l5.1f
#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 sequence
www.eeworm.com/read/101082/6243407
1b l1.1b
#print
(Section 1.1)
Now write a C program that prints two lines,
the first of which says "hello" and the second
"goodbye". Don't forget those \n delimiters.
Compile and test it. When satisfied,
typ
www.eeworm.com/read/101082/6243408
1b l3.1b
#print
What is the value of i after this
___for statement executes?
Type "answer N", where N is the value of i.
for (i = 0; i < 10; i = i + 3)
;
#copyin
#user
#uncopyin
#match 12
#log
#ne
www.eeworm.com/read/101082/6243410
2b l14.2b
#print
Write a program which counts the number of five letter
words in its input (define a word as anything between
blanks, tabs or newlines). Compile and run it, then type "ready".
Note that all tha
www.eeworm.com/read/101082/6243412
1b l12.1b
#print
The function getnum actually returns -1 when it
encounters end of file. (The source is in getnum.c
if you're interested.)
Write, compile and run a program that
reads numbers one per line with g