zoukankan      html  css  js  c++  java
  • Data Structure

    Computer programs usually operate on tables of information. In most cases these tables are not simply amorphous masses of numerical values;they involve important structural relationships between the data elements.  

    In its simplest form, a table might be a linear list of elements, when its relevant structural properties might include the answers to such questions as: Which element is first in the list? Which is last? Which elements precede and follow a given one? How many elements are in the list? A lot can be said about structure even in this apparently simple case. 

    In more complicated situations, the table might be a two-dimensional array (a matrix or grid, having both a row and a column structure), or it might be an n-dimensional array for higher values of n; it might be a tree structure, representing hierarchical or branching relationships; or it might be a complex multilinked structure with a great many interconnections, such as we may find in a human brain.

    In order to use a computer properly, we need to understand the structural relationships present within data, as well as the basic techniques for representing and manipulating such structure within a computer.

    怎样去设计程序?
    -->业务需求:从问题实际出发,写一个概括性的抽象的文字描述。

    -->解决方案:定义变量,选定函数<确定要包含哪些头文件>,确定程序实现的逻辑过程(算法)。<思路> (伪代码)

    -->技术实现:按照以上两点,依据解决问题的顺序把语句和函数写出代码。

    注意:不要边想边写代码: 先把主干代码写出来,再慢慢加枝节代码(输出的格式更漂亮, 容错措施, 更细的一些功能实现) ß甚至把主干代码部分删了重写更具体的实现也是可以的. ß代码不是一次写成的!  ß专业体现在细节!

  • 相关阅读:
    php将汉字转换为拼音和得到词语首字母(一)
    json字符串、json对象、数组之间的转换
    nginx配置详解(转)
    layer弹出层效果
    Ajax最详细的参数解析和场景应用
    bootstrap table使用指南
    JS的内置对象
    ThinkPHP导出CSV、Excel
    ThinkPHP的易忽视点小结
    sublime text 删除插件
  • 原文地址:https://www.cnblogs.com/007beta/p/3844722.html
Copyright © 2011-2022 走看看