procedure

Are there any suggestions for developing a C# coding standards / best practices document? [closed]

送分小仙女□ 提交于 2019-11-26 04:02:11
问题 I\'m a recent AI graduate (circa 2 years) working for a modest operation. It has fallen to me (primarily as I\'m the first \'adopter\' in the department) to create a basic (read useful?) C# coding standards document. I think I should explain that I\'m probably the most junior software engineer going, but I\'m looking forward to this task as hopefully I might actually be able to produce something half usable. I\'ve done a pretty extensive search of the Internet and read articles on what a

What is the difference between a “function” and a “procedure”?

非 Y 不嫁゛ 提交于 2019-11-26 03:01:59
问题 Generally speaking, we all hear about the functions or procedures in programming languages. However, I just found out that I use these terms almost interchangeably (which is probably very wrong). So, my question is: What is the difference in terms of their functionality, their purpose and use? An example would be appreciated. 回答1: A function returns a value and a procedure just executes commands. The name function comes from math. It is used to calculate a value based on input. A procedure is