哈佛大学CS50课程笔记--线性搜索,二进制搜索

Html:html is not a programming language as we will see.it is a markup language,more about aesthetics than it is about logic.

Phishing attack:which is to say you try to lure hooks on unsuspecting use into doing something that they might otherwise not if they actually understood what was going on .

Scret key cryptography:

SSL:that just means your information is encrypted between you and the web server.

Https,url:S means secure.getting the key to someone and getting it to them securely.

Public key cryptography :

Correctness:

Design:

Style:

Logical error:I would probably wanna return 1,1 being fairly arbitrary but it is nonzero and that is the key,zero means good,anything nonzero generally means bad and most people choose their error code with 1 and then move on up.

Loop:

To make this work, I kind of need to say something like string S1 and then string S2 because I might have one word in part of the song and another word in the other depending on the number.

Binary operator:upper end on the left and upper end on the right.

Ternary operator:that actually has three upper ends on the left,in the middle,and on the right and the special syntax here is the question mark and colon.

Function:if you can imagine,if the things you want to achieve feels like just conceptually,it can be bundled up and given a word like chorus.the fancy word here that you might see in one of the recommended text is hierarchical decomposition.this just means taking out logical chunks of code that collectively kind of have a conceptual definition.how many arguments it takes?chorus is just a copy paste of the code but I have wrapped it this time with a functions declaration.I am returning void cause this thing just sings.

Argument vector:an array but each of the elements in that array are themselves.argv is the second the parameter that main can take and inside of argv is very word that the user typed at the prompts.

String itself is an array because the string as a series of characters is just something that looks like this where each of these boxes is not a float or an int.it's actually char char char and then a special symbol at the very end once you are at the end of a string .so the computer can tell now the word end.

In fact, what the computer instead does is when you return an array or passs an array it actually underneath the hood just returns the address of the first chunk of memory in ram.does the string actually exist?we can check the string actually exist or it's nothingness by using a boolean expression and by comparing that strings name against the special value.

 

猜你喜欢

转载自blog.csdn.net/weixin_43218659/article/details/88648826