加载中
【SICP练习】71 练习2.42

 练习2.42 这道题曾经在C#中写过,但是写出来的代码却没有Lisp中的朴素。用了一大堆的数组和for循环。但是在这里,用car、cdr来构造就行了。 我们按书中给出的步骤来一步一步求解这个问题...

2015/09/08 21:51
0
【Project Euler】3 第三题

 //The prime factors of 13195 are 5, 7, 13 and 29. //What is the largest prime factor of the number 600851475143 ? static void Main(string[] args) { //int[] number = new int...

2015/09/08 21:51
9
【SICP练习】106 练习3.7

练习3-7 原文 Exercise 3.7. Consider the bank account objects created by make-account, with the password modification described in exercise 3.3. Suppose that our banking system r...

【Project Euler】2 第二题

 //Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: //1, 2, 3, 5, 8, 13, 21, 34, ...

2015/09/08 21:48
3
【SICP练习】2 练习1.6

 练习1.6 这道题通过由一个新版本的if来引出,主要讨论的还是应用序和正则序的问题。我看到“将if提供为一种特殊形式”时还满头雾水,并不太清楚什么特殊形式。当再返回看if的语法时才发...

【SICP练习】107 练习3.8

练习3-8 原文 Exercise 3.8. When we defined the evaluation model in section 1.1.3, we said that the first step in evaluating an expression is to evaluate its subexpressions. But ...

Android:problem opening wizard the selected wizard could not be started

直接将Eclipse关掉,重新打开后也许就好了。 如还没好,就执行如下步骤: 1.如果还没有添加ADT,则:Help -> Add New Software -> Add 在“Name”中填入ADT。 2.如果已经安装了ADT,就直接将...

Android:Plug-in com.android.ide.eclipse.adt was unable to load class android

直接将Eclipse关掉,重新打开后也许就好了。 如还没好,就执行如下步骤: 1.如果还没有添加ADT,则:Help -> Add New Software -> Add 在“Name”中填入ADT。 2.如果已经安装了ADT,就直接将...

【SICP练习】143 练习3.81

练习3-81 原文 Exercise 3.81. Exercise 3.6 discussed generalizing the random-number generator to allow one to reset the random-number sequence so as to produce repeatable sequen...

【SICP练习】148 练习4.4

练习4-4 原文 Exercise 4.4. Recall the definitions of the special forms and and or from chapter 1: ● and: The expressions are evaluated from left to right. If any expression eva...

【C++注意事项】5 Top-level const , The auto and decltype Type Specifier

top-level const As we’ve seen, a pointer is an object that can point to a different object. As a result, we can talk independently about whether a pointer is const and whether...

【SICP练习】116 练习3.42

练习3-42 原文 Exercise 3.42. Ben Bitdiddle suggests that it’s a waste of time to create a new serialized procedure in response to every withdraw and deposit message. He says t...

WPF和WinRT中的导航问题

 一、Frame、Page框架的相关介绍 1、Frame类: 继承层次结构 System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual ...

2015/09/08 21:46
16
【C++注意事项】7 Library vector Type

List Initializer or Element Count? In a few cases, what initialization means depends upon whether we use curly braces or parentheses to pass the initializer(s). For example, whe...

【C++注意事项】6 Library string Type

Processing Every Character? Use Range-Based for If we want to do something to every character in a string, by far the best approach is to use a statement introduced by the new s...

【数据结构】回顾表ADT

1.对于表的所有操作来说,都可以使用数组来实现,而且数组虽然是静态分配的,但内部存储数组的vector类却允许在需要时将数组的大小增加一倍。 2.正是因为数组的实现,使得printList以线性时间...

继承和多态

 sealed关键字 如果我们将类标记为sealed,编译器将不会允许我们从这个类型派生。(C#结构总是隐式密封的。因此,我们永远不可以从结构继承结构,从类继承结构或从结构继承类。结构只能用...

2015/09/08 21:47
19
如何在Android Studio上使用Github

首先,登陆到Github上并创建一个新repository。在屏幕右上角,点击“+”标记,并且选择“New repository”。 现在完成这个表格以新建一个叫做testproject的新repository,让这个repository自...

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部