Good functional analog pointers?

The best thing that I have come up with so far is that the card catalog contains instructions for finding ways to cook different types of food. It does not contain information on how to cook food, as well as instructions for cooking the food itself, but it may indicate appropriate instructions that are located elsewhere. This is a good analogy because it demonstrates flexibility in the preparation of various types of food (Mexican, vegetarian, Indian, etc.), but the concept of a card catalog is quickly replaced by computerized searches. I was asked scared "What is a card catalog?" Using Google as an example of searching for cooking instructions is okay, but there is no clear difference in physical location, searching for instructions and “following them”. Does anyone have any analogueswho worked with them?

+5
source share
11 answers

In any case, the card catalog seems a little strange. Going with your topic, the best analogy for IMO function pointers would be that they are an entry in the cookbook index. "Cajun ...... 39", so you go to page 39, and there are instructions for making Cajun.

0
source

I don’t think it’s a good idea to try to teach a very technical concept using non-technical counterparts - apparently the people you teach do NOT need the vague notion of “managerial resume”, they will ultimately need to apply the concept specifically, so why such a detour?

? , (, ).

" - , , . , , quicksort mergesort, , , , ints. , , , - , , ".

+15

.

, .

+5

, - , . : " ?" " ?"

, , . (-, , - ..). (JPEG, PNG, GIF). , N * M: N M . 9 (3 * 3). TIFF. 12 (3 * 4) . . .

: getWidth(bitmap), getHeight(bitmap), getPixel(bitmap, x, y)

N , FP. , . , , FP . , 6 (3 + 3) , TIFF, : 7 12.

, FP . , FP ( ), , , , FP.

, , . . :

    lea.l someFunction,a0  # Load address of someFunction
    jsr.l a0               # Jump to subroutine

:

    lea.l  functionPointer,a0  # Load address of functionPointer
    move.l (a0),a0             # Load what is stored at functionPointer into a0
    jsr.l  a0                  # Jump to subroutine

, .

+2

: , , , , . , , , .

+1

.:)

, , , .

-, - . , , , .

+1

, " " " " ( ). , , , , , .

, , , .

0

.NET , , .

, - - (, ), .

0

, ( ). , " ", () . , .

0

, "" "" ( , " " "" ). , " " - ", " (, , "" ).

0

CDS (Credit Default Swaps). , .

http://www.youtube.com/watch?v=KPNdYtrlgaU#t=120s

" , , , , , , CDS , , ".

: " , ".

, , CDS. .:)

0

All Articles