It is planned that the book "construction and interpretation of computer programs" will be completed in half a year, and more than half of the exercises will be completed.
Software used:
System: windows xp
Interpreter: DrRacket, version 5.1
Language: SICP (PLaneT 1.13). For details about how to obtain this language, see here.
Exercise answer directory:
Chapter 2 constructor process Abstraction
Section 1.1
1. Assume that a C program has two files: p1.c and p2.c. On an ia32 server, we compile the code using the Unix Command Line as follows:
UNIX> gcc-O1-o p p1.c p2.c
In fact, the GCC command calls a series of programs to convert the source code into executable code. First, the C Preprocessor extends the source code, inserts all files specified with the # include command, and extends all the macros specified with the # define declaration. Then, the compil
"This is the answer I wrote:# Your code hereIf Len (aStr) = = 0:Return FalseElif len (aStr) = = 1:if aStr = = Char:Return TrueElseReturn FalseElseif char = = Astr[len (aStr)//2]:Return TrueElif Char Return IsIn (char, Astr[:len (ASTR)//2])else:Return IsIn (char, Astr[len (ASTR)//2+1:])def isIn (char, ASTR): "This is the standard answer: char:a single character Astr:an alphabetized string returns:true if char I s in AStr; False otherwise ' # Base case:if aStr is empty, we do not find the char.
The Helper House (www.bkjia.com) has written a tutorial.. net program test. The environment variable is set at the beginning. If the result is not correct, copy it to the C: \ windows directory. The result is OK. The following problems are described:
1. If you want to write a C # program by yourself, you must install it in the Windows directory of drive C,
2. A prompt is displayed when you click. It depends on whether you can tolerate it.
3. Whether execution can be performed is highly related t
Document directory
Difference between process and procedure in this book
Linear recursion
I am stupid. I am unaware of the "computing process" and "process" in the translated book. In the translation, process is translated into "computing process" and procedure is translated into "process ". Process is sometimes translated into "process ".Difference between process and procedure in this book
Process is the process of processing a program in a computer
1. A number of traditional methods
2. The code of the program to generate a two-dimensional code picture
3. Use mobile phone to scan the generated two-dimensional code and convert it into a PY script
Objective
Writing scripts on the phone is a hard thing to do every day, although SL4A provides us with the API quick Insert function, and graceful Python saves us the pain of entering semicolons and parentheses, there is no IntelliSense, no keyword completion, small buttons, difficulty in enteri
cache. Quickpoweronselftest(Fast boot self-test, default value: Enable)When the computer is started, the BIOS will perform a series of boot self-tests. When this function is enabled, tests of the same project are streamlined and skipped to shorten the boot time. Hddsequencescsi/idefirst (IDE/SCSIHard Disk boot priority; default value: IDE)When both SCSI and IDE Hard Disks are installed, this option can be used to select a SCSI or IDE hard disk as th
The teacher asked us to write a simple PHP computer program. The key is that we don't know how to encapsulate it. The teacher asked us to write a simple PHP computer program. The key is that we don't know how to encapsulate it. Reply: The teacher told me to build a car. The key is that I don't know how to make steel. Calculator, I did your job directly: Save the following line of code as a plain text file o
itself is faulty. You can first connect the hard disk to another computer and try again. If the problem persists, You have to repair it.(9) floppy disk (s) fail or floppy disk (s) fail (80) or floppy disk (s) fail (40)Translation: unable to drive the software drive.Resolution: first check whether the soft drive line is connected incorrectly or loose, and whether the power cord is connected properly. If there is no problem, it may be the fault of the
The company's software often does not work. During the Chinese new year's holiday, it was pulled back to the company to restart the computer, and there was no way to make a small program to start. You can restart your computer by sending an email to the specified mailbox.
Tags:(2)
[Code]Main class
Import Java. io. bufferedoutputstream; import Java. io. dataoutputstream; import Java. io. file; import Java.
For Java desktop applications, the more annoying is the installation of deployment issues, whether the client installed JRE, JRE version of the problem, where the JRE to download, how to use the JRE to start your Java application. Do not say that people who have just contacted the computer, is more familiar with the computer, if not touched Java, face a Java application, how to launch it under Windows, it i
1. First, let's hit the Start menu of the Win7 flagship computer, and then go to the device and printer interface from the Start menu.
2. In the Open interface, we click on the top of the window to add a printer, which will pop up a window to install the printer, we choose the type of printer to install, generally select the first item on the line, then click into the next step.
3. Next is the choice of the printer port, we still choose the first, t
1, first in the Computer task bar, click the right mouse button, pop-up dialog box, select "Enable Task Manager", or directly use the shortcut Ctrl+alt+delet start Task Manager.
2. See the running program in the application, find the program that needs to be forced off, select it.
3, click "End Task", such as the eyelash need to close the Thunderbolt.
4, if the encounter is not over or after the end of the appli
1. First of all, in their own Win7 computer in the lower right corner of the notification area to find the Horn icon and right click, in the advent of the Slide menu we choose playback equipment.
2. In the Open Sound window, locate the speaker option, then right-click and select Properties.
3. You can then see the window shown in the following figure, switch the interface to the Advanced column, and then remove the "Allow Application Exclusiv
In general, how do we view the w764 flagship system download background running program? I'm afraid most of my friends ' queries are through Windows Explorer, right? There is a process interface, which is the interface shown in the following figure, in which we can see the running background program, So is this method really right? In fact, here you can see the program is running, but it is not comprehensive, perfect information, if you want to see all the w764 flagship system download backgroun
We often want to open a program without opening another instance. After exploration, we found that there are two solutions available: One is through the process, and the other is through the mutex class.1. Using mutex, mutex has an output parameter
C source code:
void swap(int *a,int *b){ int c; c = *a; *a = *b; *b = c;}int main(void){ int a ; int b ; int ret; a =16; b = 64; ret = 0; swap(&a,&b); ret = a - b; return ret;}
Compile:
gcc -g func_stack.c -o
Linear recursion:
Function Factorial (n ){
Return N = 1? 1: N * factorial (n-1 );
}
Linear iteration:
Function Factorial (n ){
Return Fact_iter (1, 1, n );
}
Function Fact_iter (product, counter, max_count ){
Return Counter>
SetCodeTo a TXT file, save the file at the End of. bat, and double-click it to run. OK.
@ Echo offRem fix update garbage Value
Set Update = HKLM \ Software \ Microsoft \ updateSet updates = HKLM \ Software \ Microsoft \ UpdatesRem set AutoUpdate =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.