This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #lang racket | |
| ;;定义阶乘函数 | |
| (define (fact n) | |
| (if (= n 1) | |
| 1 | |
| (* n (fact (- n 1))))) | |
| ;;由于我们不能使用define,那么把fact作为参数名 | |
| (lambda (f) | |
| (lambda (n) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <unistd.h> | |
| int child(int, int); |
NewerOlder