- 博客(17)
- 收藏
- 关注
原创 [SICP Notes] 1.1 The Elements of Programming
About the BookTo 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
2014-07-26 00:14:34
983
原创 UVa 151 - Power Crisis
The ProblemDuring 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
2014-07-23 21:15:20
990
原创 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
2014-07-19 01:28:34
1541
原创 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
2014-07-08 23:26:43
1118
原创 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?
2014-07-05 01:59:12
869
原创 Using "return false;" in onclick Event in JavaScript
In my job, I have read the html files of many static webpages. It
2014-06-27 22:05:51
1066
原创 [CPPHTP7 NOTES] CH8. POINTERS(6) Simpletron Computer Simulator
(Exercise 8.18 Machine-Language Programming + Exercise 8.19 Computer Simulator)
2014-06-26 22:35:36
2417
原创 Using parseInt() - the Interesting Facts
From Mozilla Developer Network(MDN)SummaryThe parseInt() function parses a string argument and returns an integer of the specified radix or base.SyntaxparseInt(string, radix);P
2014-06-23 23:32:37
1124
原创 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
2014-06-22 18:11:43
753
原创 [CPPHTP7 NOTES] CH8. POINTERS(5) - Maze Traversal
(Exercise 8.16 Maze Traversal) This exercise takes me quite a long time to finish.
2014-06-22 17:05:29
1785
原创 [CPPHTP7 NOTES] CH8. POINTERS(4)
(Exercise 8.15) This exercise is a classic! It asks the readers to write a quick sort function
2014-06-21 22:56:51
772
原创 [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
2014-06-20 23:10:17
711
原创 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
2014-06-20 00:45:48
1493
原创 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
2014-06-19 23:45:16
891
原创 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
2014-06-19 22:22:16
916
原创 [CPPHTP7 NOTES] CH8. POINTERS(2)
(Exercise 8.12) In this exercise, I am asked to write a program to simulate the
2014-06-19 21:26:36
852
原创 [CPPHTP7 NOTES] CH8. POINTERS(1)
Here comes my first reading notes for C++ How to Program 7/e, which is in detailed and inspire me a lot. After abandoning the book for long, now I pick up it again and start reading it from Chapter 8:
2014-06-18 23:04:48
666
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人