zoukankan      html  css  js  c++  java
  • epson Robot 指令集合

    *******************************************************************

    目的:定义一个整型数据

    原型:Integer varName[(subscripts)],varName[(subscripts)],...........  

    解释:Integer is used to declare variables as type Integer.  Variables of type Integer can contain(包含) whole numbers with values between -32768 to 32767.  

    Local variables should be declared at the top of a function.  Global and module variables must be declared outside of functions.

    Example:

     Integer A(10) 'Single dimension array of integer 
      Integer B(10, 10) 'Two dimension array of integer
      Integer C(5, 5, 5) 'Three dimension array of integer
      Integer var1, arrayvar(10)
      Integer i

    *****************************************************************************************

    目的:数据的附加修饰。

    原型:

    全局类型数据:Globle [Preserve] dataType varName [(subsricpts)],varName [(subsricpts)],..........

    模块类型数据:

    局部类型数据:

     

    特别说明:对于全局变量还可以继续使用Preserve。 这样这个数据就可以保存下来。。

    Example:

    局部变量的声明 

    Function main

    Integer i

    Fend

    模块内变量的声明

    Integer m_i

    Function main

    Fend

    全部变量(全局保护变量)的声明

    Globle (Preserve) Integer g_i

    Function main

    Fend

    ******

    后记:细心的同学发现了 我在声明 模块变量和全部变量的时候 使用前缀 m_ 和g_   ,这是优秀程序员的基本素养。

    这样以后看到变量的时候 就知道这个什么作用域的变量,提高代码的阅读体验。

    ×××××××××××××××××××××××××××××××××××××××××××××××××××××

  • 相关阅读:
    .NET总结
    gzip压缩输出
    矩阵 快速幂
    Mock单元测试
    mysql乱码原因之一
    写个android下倒计时软件
    linux gcc下实现简单socket套接字小程序
    gcc下MD5破解
    #1045 Access denied for user 'root'@'localhost'
    转android四种动画
  • 原文地址:https://www.cnblogs.com/wenluderen/p/4317744.html
Copyright © 2011-2022 走看看