因為專業所以放心

          學習是沒有起點和終點的......

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            15 Posts :: 0 Stories :: 1 Comments :: 0 Trackbacks

          1、單行注釋//
          ??? 多行注釋?/**/
          2、數據類型:(不區分大小寫)
          ???(1)基本數據類型
          ??? 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)復合數據類型
          ???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)擴展數據類型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、開發環境概覽:
          AOT2.JPG

          posted on 2006-08-06 11:58 舞熙 閱讀(468) 評論(0)  編輯  收藏 所屬分類: 程序設計語言
          主站蜘蛛池模板: 陆河县| 黎平县| 望江县| 和硕县| 枣阳市| 万盛区| 桓仁| 沈阳市| 安国市| 泰州市| 三都| 东乡族自治县| 车险| 昌图县| 武川县| 怀安县| 子长县| 当雄县| 盐边县| 新干县| 乌兰察布市| 桦南县| 响水县| 临沧市| 郁南县| 新民市| 龙陵县| 连城县| 彭阳县| 平度市| 梁河县| 娄烦县| 淮滨县| 黔西县| 山阴县| 宜兴市| 防城港市| 英超| 舒兰市| 和林格尔县| 微山县|