代码搜索结果

找到约 10,000 项符合 L 的代码

l14.1a

#print Using the familar "getnum.o" routine write a program that reads numbers one per line and determines for each if it is prime. Print "prime" for a prime number and "composite" for a non-prime num

l19.1a

#print Write a subroutine which counts the number of times it has been called and returns that count each time. Name it "count()". Write it on a file named "count.c". Compile and test it; type "rea

l15.1a

#print Write a program that reads in lines one at a time, and prints them out if their length (including the newline) is odd. You can use the function getline if you like; the object file is in getlin

l5.2a

#print Write a program which reads a character from its input and prints "high" if that character is larger than 100 in numeric value (decimal) and "low" if it is less than or equal to 100 in numeric

l31.1a

#print Write a function named "rev(s)" which reverses the string "s" in place. Name the file that contains the function "rev.c". When you're satisfied, type "ready". #once #create Ref cbax0987654321 #

l11.1a

#print With your 'cc' command you can give the name of an object file to be loaded with your program. For example cc x.c y.o will load the previously compiled program 'y' along with the program 'x'

l4.1a

#print Does the # of a "#define" statement absolutely have to go in column 1? Answer yes or no. #copyin #user #uncopyin #match yes #log #next 5.1a 10

l13.1a

#print Write a program which reads its input and counts the number of characters and the number of spaces (where a space is either a blank or a tab or a newline). Print both numbers. Compile, test, a

l12.1a

#print Write a program which reads two numbers and prints the larger one in decimal. Use the same "getnum" subroutine. Compile, test and type "ready" as usual. #once #create Ref1 14039 89 #once #crea

l50.1a

#print (Everything) Write a program that reads an input file and prints out the most frequently appearing word in it. Although you don't need to know this, I'll tell you that not more than 500 distinc