Scheme教程——基础篇

函数式编程(Functional Programming)在了解Scheme的语法之前,我们首先应该明白函数式编程(Functional Programming)这种范式(Paradigm)。简单引用一下我们老师的描述:Functional Programming is a paradigm that is defined by building software out of pure func

- 阅读全文 -

Byte/Bits 字节/位常用单位换算

Terabyte (TB): 虽然最初为1,099,511,627,776 (240)字节,但是现在许多硬盘厂商已经开始用TB表示1,000,000,000,000 (1012)。为了减少混淆,我们现在使用术语 tebibyte (TiB) 来表示 240 字节,将 TB (TB) 定义为 1012 字节。 下图显示了十进制和二进制值和名称的完整范围。DecimalAbbreviationValu

- 阅读全文 -

MIPS32汇编第一次小作业

这篇文章记录一下在学习CSE 230 - Computer Org/Assemb Lang Prog 这门课写地第一个汇编程序小作业。作业要求最后打印出来要是这个效果:Enter c3? 37 Enter c2? -148 Enter c1? 120 Enter c0? -47 Enter x? -13 p(x) = 37x^3 + -148x^2 + 120x + -47 at x = -13

- 阅读全文 -

常见的循环逻辑

In the following sections, we discuss some of the most common algorithms that are implemented as loops. You can use them as starting points for your loop designs.Sum and Average ValueComputing the sum

- 阅读全文 -

Java中字符串的使用方法

What are String Methods?String in Java (Concatenation)Building longer strings from shorter stringsString concatenation operator +Scanner Methodsnext()nextLine()String are chars sequencesstring grettin

- 阅读全文 -

Printf 在Java中的用法介绍

How printf() works?String account = "Prime"; double total = 210.35; int years = 5; System.out.printf("The %s account saved you $%f over %d years\n", account, total, years);pri

- 阅读全文 -