ICT
the blog for ICT
ken013194
暱稱: ホロ
性別: 男
國家: 香港
地區: 葵青區
« July 2026 »
SMTWTFS
1234
567891011
12131415161718
19202122232425
262728293031
最新文章
Text File
Arrays
String Procedures
String Functions
String Operation
文章分類
全部 (23)
Programming Language (23)
訪客留言
最近三個月尚無任何留言
每月文章
日誌訂閱
尚未訂閱任何日誌
好友名單
尚無任何好友
網站連結
尚無任何連結
最近訪客
最近沒有訪客
日誌統計
文章總數: 23
留言總數: 0
今日人氣: 1
累積人氣: 69
站內搜尋
RSS 訂閱
RSS Feed
2009 年 9 月 11 日  星期五   晴天


Identifier 分類: Programming Language

High-level Programming Language (Pascal)

Identifiers

  • are names given to program name, constants, variables or subprogram names in a Pascal program
  • can be classified as standard identifiers and user-defined identifiers
  • the syntax diagram of <identifier>

    standard identifiers

  • have predefined meaning, but they are not reserved words
  • can be redefined in the program, once they are redefined, the original predefined meaning are replaced and cannot be applied in the program
  • it is not recommended to redefine the standard identifiers which may cause confusion
  • a list of standard identifiers :

    Standard Identifiers
    abs eoln randomize str
    arctan * exp * read text
    assign false readln true
    boolean input real trunc
    char integer reset val
    chr length rewrite write
    close ln * round writeln
    copy ord sin *  
    cos * output sqr * It is not required in the HKCEE
    eof random sqrt

    Remark : Standard identifiers are classified as reserved words in the HKCEE and cannot be used as user-defined variables.

    user-defined identifiers

  • names which are made up by the user
  • valid user-defined identifiers
    • a combination of letters, digits and underscore ( _ )
    • first character must be a letter
    • reserved words cannot be used
  • it is better to use a meaningful name






訪客留言 (返回 ken013194 的日誌)

訪客名稱:
電郵地址: (不會公開)
驗證碼:  按此更新驗證碼 (如看不清楚驗證碼請點擊圖片刷新)
俏俏話: (必需 登入 後才能使用此功能)
[ 開啟多功能編輯器 ]