关闭

[SICP Notes] 1.1 The Elements of Programming

About the Book To know more about programming, I have decided to start reading the famous Structure and Interpretation of Computer Programs (SICP, or the Wizard Book), which is first published by M...
阅读(495) 评论(0)

UVa 151 - Power Crisis

The Problem During the power crisis in New Zealand this winter (caused by ashortage of rain and hence low levels in the hydro dams), acontingency scheme was developed to turn off the power to areas o...
阅读(595) 评论(0)

A Simple Example About Privileged Methods in JavaScript

Douglas Crockford classified the "class methods" in JavaScript into three types: private, privileged and public. Public methods have an obvious meaning: they can be accessed by the public. Priv...
阅读(1113) 评论(0)

Prototype and Constructor in JavaScript

The concept of prototype in JavaScript is very confusing, especially to those who come with a C++/JAVA/... background. As an OOP langauge, JavaScript is very different from the languages with class. I...
阅读(650) 评论(1)

Difference Between == and === : A Simple Comparison

Beginners in JavaScript may be confused with the two equal operators, === and ==. So what is the difference between them?...
阅读(507) 评论(0)

Using "return false;" in onclick Event in JavaScript

In my job, I have read the html files of many static webpages. It...
阅读(700) 评论(0)

[CPPHTP7 NOTES] CH8. POINTERS(6) Simpletron Computer Simulator

(Exercise 8.18 Machine-Language Programming + Exercise 8.19 Computer Simulator)...
阅读(1642) 评论(0)

Using parseInt() - the Interesting Facts

From Mozilla Developer Network(MDN) Summary The parseInt() function parses a string argument and returns an integer of the specified radix or base. Syntax parseInt(string, radix); P...
阅读(706) 评论(0)

UVa 10189 - Minesweeper

// 10189 - Minesweeper #include using namespace std; int main() { int n; // number of lines int m; // number of columns int num = 1; // number of field char field[110][110]; // 0 < n,m <= 100 ...
阅读(393) 评论(0)

[CPPHTP7 NOTES] CH8. POINTERS(5) - Maze Traversal

(Exercise 8.16 Maze Traversal) This exercise takes me quite a long time to finish....
阅读(1297) 评论(0)

[CPPHTP7 NOTES] CH8. POINTERS(4)

(Exercise 8.15) This exercise is a classic! It asks the readers to write a quick sort function...
阅读(443) 评论(0)

[CPPHTP7 NOTES] CH8. POINTERS(3)

(Exercise 8.14) In this exercise, a piece of code is given. Readers are asked to guess what the program does. I...
阅读(409) 评论(0)

UVa 10812 - Beat the Spread!

Superbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hackers have organized a betting pool on the game. Members place ...
阅读(861) 评论(0)

UVa 11799 - Horror Dash

It is that time of the year again! Colorful balloons and brightly colored banners spread out over your entire neighborhood for just this one occasion. It is the annual clown's festival at your local s...
阅读(460) 评论(0)

UVa 11559 Event Planning

As you didn't show up to the yearly general meeting of the Nordic Club of Pin Collectors, you were unanimously elected to organize this years excursion to Pin City. You are free to choose from a numbe...
阅读(379) 评论(0)
17条 共2页1 2 下一页 尾页
    个人资料
    • 访问:12179次
    • 积分:303
    • 等级:
    • 排名:千里之外
    • 原创:17篇
    • 转载:0篇
    • 译文:0篇
    • 评论:1条
    文章分类
    文章存档