因為專業(yè)所以放心

          學(xué)習(xí)是沒有起點和終點的......

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            15 Posts :: 0 Stories :: 1 Comments :: 0 Trackbacks

          1、單行注釋//
          ??? 多行注釋?/**/
          2、數(shù)據(jù)類型:(不區(qū)分大小寫)
          ???(1)基本數(shù)據(jù)類型
          ??? boolean
          ????????????
          boolean b;?
          ?????????boolean b1,b2;?
          ??? integer
          ????????????
          int i1,i2;
          ????????? int i3 = 100;
          ??????????int i4[];
          ??? real
          ????????????
          real r1,r2;
          ????????? real r3 = 3.1415;
          ??? date
          ????????????
          date d1,d2;
          ?????????//A date variable, d3, is initialized to the 21st of October 1998
          ?????????date d3 = 21\11\1998;
          ??? timeofday
          ??? string
          ??????str a=”Hello”,b=”World”;
          ??????print a+” “+b;
          ??????enum
          ???(2)復(fù)合數(shù)據(jù)類型
          ???array(s)
          ??????real r[100];?
          ?????????// A dynamic array of dates, with only 10 elements in memory
          ??????date d[,10];?
          ?????????// A fixed length array of NoYes, with 100 elements and 10 in memory
          ??????NoYes e[100,10];?
          ???Container(s)
          ?????????container c = [7,3.14, ”Hello”];
          ?????????int i;
          ?????????i = confind( c, “Hello”); //i has the value 3
          ???classe(s)
          ??????Access a1; //An Access-object is declared but NOT initialized
          ??????Access a2, a3; //Two Access-objects are declared, but NOT initialized
          ??????Access a4 = new Access();
          ???table(s)
          ???(3)擴展數(shù)據(jù)類型Extended data types):
          ?????????where extendedtype is the name of the Extended Data Type in the Application Object Tree. Using the EBNF you can declare Extended Data Type variables like this (the examples use built-in extended data types):
          ?????????// A UserGroupID (integer) variable is declared and initialized to 1.?
          ??????UserGroupIDgroupID = 1;
          ?????????// An Amount (real) variable is declared
          ??????Amount currency;
          3、程序控制語句類似于c++,但是,變量的定義要放在開始使用之前,如:
          ???? do{
          ??????????print b;
          ????????? b++;
          ??????}while(b<10);

          ?????for(m=0;m<10;m++){//can not define int m=0 in this
          ??????????print m;
          ???????}
          4、開發(fā)環(huán)境概覽:
          AOT2.JPG

          posted on 2006-08-06 11:58 舞熙 閱讀(469) 評論(0)  編輯  收藏 所屬分類: 程序設(shè)計語言
          主站蜘蛛池模板: 新田县| 田东县| 湄潭县| 盖州市| 博客| 南华县| 德化县| 京山县| 都兰县| 通化市| 威远县| 金塔县| 襄城县| 萨迦县| 沈丘县| 乡城县| 神农架林区| 出国| 日喀则市| 蓬溪县| 富平县| 清新县| 鄱阳县| 卓资县| 和田市| 深水埗区| 永嘉县| 错那县| 佳木斯市| 甘谷县| 和顺县| 永泰县| 安多县| 虹口区| 香格里拉县| 阳信县| 绥阳县| 库车县| 承德市| 固始县| 筠连县|