亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cintro.doc

?? 編譯c語言的編譯器源碼 含有目標程序
?? DOC
?? 第 1 頁 / 共 5 頁
字號:
   3. INTRODUCTION TO 'C'
   
         'C' is a "high level" computer language,  which  has  become  very
      popular in recent years. It has proven suitable for a  large  variety
      of programming tasks, and unlike most other high level languages,  is
      quite good for "low  level"  and  "system"  type  functions.  A  good
      example of this capability is the popular  "UNIX"  operating  system,
      which is  written  almost  entirely  in  'C'.  Before  UNIX,  it  was
      generally thought that the only language efficent enough for  writing
      an operating system was assembly language.
   
         Programs in 'C' are divided into two main parts, VARIABLES,  which
      are blocks of memory reserved for storing data, and FUNCTIONS,  which
      are blocks of memory containing executable CPU instructions. They are
      created using a DECLARATION STATEMENT, which is basically  a  command
      to the compiler telling it what type of variable or function you wish
      to create, and what values or instructions to place in it.
   
         There are several 'C' KEYWORDS which serve to inform the  compiler
      of the size and type of a variable or function. This  information  is
      used by the compiler to determine how to interpret the  value  STORED
      in a VARIABLE, or RETURNED by a FUNCTION.
   
       Size:   int         - 16 bit value (default)
               char        - 8 bit value
       type:   unsigned    - Positive only (0-2**bits)
                           + Default is signed (positive & negative)
   
       Examples:   int a;              /* 16 bit signed variable */
                   char b;             /* 8 bit signed variable */
                   unsigned int c;     /* 16 bit unsigned variable */
                   unsigned d;         /* Also 16 bit unsigned variable */
                   unsigned char e;    /* 8 bit unsigned variable */
   
         Normally, when you define a function or global variable, its  name
      is made accessable to all object modules which will  be  linked  with
      the program. You may access a  name  which  is  declared  in  another
      module by  declaring  it  in  this  module  with  with  the  "extern"
      modifier:
   
          extern int a;       /* external variable of type int    */
          extern char b();    /* external function returning char */
   
         If you want to make sure that a function or global  variable  that
      you are declaring is not accessable to  another  module  (To  prevent
      conflicts with names in other modules etc), you can declare  it  with
      the "static" modifier. This causes the name to be accessable only  by
      functions within the module containing the "static" declaration:
   
                                static int a;
   Intro to MICRO-C                                                 Page: 12


      3.1 Functions
   
            FUNCTIONS in 'C' are  collections  of  C  language  STATEMENTS,
         which are grouped together under a name. Each statement represents
         an operation which is to be performed by the CPU. For example, the
         statement:
   
                                  A = A + 1;
   
         directs the CPU to read the variable called 'A', add a value of  1
         to it, and to store the result back into the variable  'A'  (we'll
         discuss variables in the mext section). Note the  SEMICOLON  (';')
         at the end  of  the  statement.  The  'C'  compiler  uses  ';'  to
         determine when the statement ends. It does not care about lines or
         spaces. For example, the above statement could also be written:
   
                                      A
                                      =
                                      A
                                      +
                                      1
                                      ;
   
         and would still compile without error. Thus, you can have  a  VERY
         long statement in 'C', which spans several lines. You must  always
         however, be very careful to include the terminating ';'.
   
            Each function within a 'C' program can be "called" by using its
         name in any statement, may accept "argument" values which  can  be
         accessed by the statements contained within it, and may  return  a
         value back to the caller. This allows functions in 'C' to be  used
         as "building blocks", providing extensions to the language,  which
         may be used from any other function.
   
            Below is a sample 'C' function,  which  performs  an  operation
         (addition) on two argument values. The text between '/*' and  '*/'
         is COMMENTS, and is ignored by the compiler.
   
           /* Sample 'C' function to add two numbers */
           int add(num1, num2)     /* Declaration for function */
               int num1, num2;     /* Declaration for arguments */
           {
               return num1+num2;   /* Send back sum of num1 and num2 */
           }
   
            The names located within the  round  brackets  '()'  after  the
         function name "add" tells the compiler what names you want to  use
         to refer to the ARGUMENT VALUES. The "return" statement  tell  the
         compiler that you want to terminate the execution of the function,
         and return the value of  the  following  expression  back  to  the
         caller. (We'll discuss "return" in more detail later).
   Intro to MICRO-C                                                 Page: 13


            Now that you have defined the function "add", you could use  it
         in any other statement, in any function in your program, simply by
         calling it with its name and argument values:
   
                                a = add(1, 2);
   
            The above statement would call "add", and pass  it  the  values
         '1' and '2' as arguments. "add" evaluates 1  +  2  to  be  3,  and
         returns that value back, which is then stored in the variable 'a'.
   
            Note that 'C' uses the  round  brackets  following  a  name  to
         determine that you wish to call the function, therefore, even if a
         function has no argument values, you must include '()':
   
                               a = function();
   
            Also note, that if a function does not return a value,  or  you
         do not want to  use  the  returned  value,  you  simply  code  the
         function name by itself:
   
                                 function();
   
      3.2 Variables
   
            VARIABLES in 'C' are reserved areas of memory  where  the  data
         manipulated by the program is stored. Each variable is assigned  a
         name by which it  is  referenced  by  other  'C'  statements.  ALL
         VARIABLES IN 'C' MUST BE DECLARED.
   
            Variables in 'C' may be single values as shown eariler, or they
         may be declared as an ARRAY, which reserves  memory  space  for  a
         number of data elements of the variables type:
   
                                int array[4];
   
            The above statement reserves memory  for  four  16  bit  signed
         values, under the name "array". It is important to know  that  'C'
         considers the elements of an array to be numbered from  zero  (0),
         so the four locations in the above array are referenced by using:
   
                                   array[0]
                                   array[1]
                                   array[2]
                                   array[3]
   
            There are two basic types  of  varaibles  in  'C',  GLOBAL  and
         LOCAL.
   Intro to MICRO-C                                                 Page: 14


         3.2.1 GLOBAL Variables
   
               GLOBAL variables are set up permanently in memory, and exist
            for the duration of the entire programs execution. The names of
            global variables may be referenced by  any  statement,  in  any
            function, at any time. Global variables are declared in 'C'  by
            placing the declaration statement OUTSIDE of any function.  For
            example:
   
               int a;      /* Declare GLOBAL variable */
   
               inita()     /* Function to initialize 'a' with 1 */
               {
                   a = 1;
               }
   
               Note that the declaration statement for 'a' is NOT contained
            within the definition of "inita".
   
               Since global variables are permanent blocks of memory, it is
            possible to INITIALIZE them in the declaration statement.  This
            causes the variable to be assigned a  value  at  COMPILE  time,
            which will be loaded into memory at  the  same  time  that  the
            program is loaded to be executed. This means that your  program
            will not have to explicitly store a value in a.
   
                                  int a = 1;
   
               Array variables may also be initialized in  the  declaration
            statement, by using the  curly  brackets  '{}'  to  inform  the
            compiler that you have multiple values:
   
                          int a[4] = { 1, 2, 3, 4 };
   
               In MICRO-C, the initial values for an array are expressed as
            a single string of values  REGUARDLESS  of  the  shape  of  the
            array:
   
                        int a[2][2] = { 1, 2, 3, 4 };
   
               If an array has only one dimension (set of  '[]'s),  you  do
            not have to specify the  size  of  initialized  variables.  The
            compiler will automatically set  the  size  to  the  number  of
            initial values given:
   
                        int array[] = { 1, 2, 3, 4 };
   Intro to MICRO-C                                                 Page: 15


         3.2.2 LOCAL Variables
   
               Variables  which  are  declared  WITHIN   a   function   are
            determined by the compiler to be  LOCAL.  The  memory  used  by
            these variables is automatically  reserved  when  the  function
            begins to execute, and is released when it terminates. Names of
            LOCAL variables are only accessable from  within  the  function
            where they are defined:
   
               inita()     /* Function to initialize 'a' with 1 */
               {
                   int a;  /* Declare LOCAL variable */
   
                   a = 1;
               }
   
               The  above  function  shows  the  declaration  of  a   local
            variable, but is not very useful since the local variable  will
            cease to exist when the function returns. Local  variables  are
            used as temporary locations  for  holding  intermediate  values
            created during a functions execution, which are not required by
            any other part of the program.
   
               Each function may have its own local  variables,  but  since
            memory is  only  used  by  the  functions  which  are  actually
            executing, the total amount of memory reserved is usually  less
            that the total size of all local variables in the program.
   
               Since local variables are allocated and released during  the
            execution of your program, it is  not  possible  to  initialize
            them at compile time, and therefore MICRO-C does not allow them
            to be initialized in the declaration. Some compilers  do  allow
            this, however,  the  code  generated  is  equivalent  to  using
            assignment statements to initialize them at  the  beginning  of
            the function.
   
               The ARGUMENTS to a function  (See  Functions)  are  actually
            local variables for that function which are  created  when  the
            function is called. For this reason,  the  argument  names  are
            also un-available outside of the function  in  which  they  are
            defined.
   Intro to MICRO-C                                                 Page: 16


      3.3 Pointers
   
            A POINTER in 'C' is a memory address,  which  can  be  used  to
         access a data item in memory. All pointers in MICRO-C are  16  bit
         values, which allows access to a maximum of 65536 bytes of  memory
         through it.
   
            Any variable or function  may  be  declared  as  a  pointer  by
         preceeding its name with the '*' character in the declaration:
   
           int *a;                 /* a = 16 bit pointer to int value */
           char *b;                /* b = 16 bit pointer to char */
           extern char *fgets();   /* Returns 16 bit pointer to char */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
福利一区二区在线| 日韩va亚洲va欧美va久久| 成人免费三级在线| 国产精品美女久久久久久 | 欧美精品一区二区三区视频| 日韩国产欧美视频| 欧美一卡2卡3卡4卡| 美女高潮久久久| 久久综合久久鬼色| 99久久久免费精品国产一区二区| 亚洲免费在线观看| 欧美午夜影院一区| 免费欧美日韩国产三级电影| 日韩一区二区在线看| 国产中文字幕精品| 亚洲日本电影在线| 制服丝袜在线91| 国产伦精品一区二区三区免费| 国产日产精品1区| 91性感美女视频| 天天综合网 天天综合色| 日韩视频免费直播| 成人午夜短视频| 亚洲国产一二三| 精品国产免费久久| 91天堂素人约啪| 性做久久久久久| 久久久精品免费免费| 97久久精品人人做人人爽| 日韩中文字幕不卡| 欧美极品少妇xxxxⅹ高跟鞋| 一本一道久久a久久精品综合蜜臀| 亚洲福利一二三区| 久久婷婷国产综合精品青草 | av中文字幕在线不卡| 亚洲午夜私人影院| 久久久www免费人成精品| 91国偷自产一区二区三区成为亚洲经典| 午夜欧美2019年伦理| 国产欧美一区在线| 欧美老肥妇做.爰bbww| 国产不卡免费视频| 日韩高清中文字幕一区| 国产精品国产三级国产普通话三级 | 色综合亚洲欧洲| 久久99精品国产.久久久久| 亚洲精品高清在线| 欧美国产一区二区| 欧美一区二区不卡视频| 91久久精品日日躁夜夜躁欧美| 久久99蜜桃精品| 亚洲二区在线观看| 亚洲色欲色欲www| 久久久影视传媒| 91精品国产欧美一区二区18| 色综合久久综合| 处破女av一区二区| 精一区二区三区| 日本aⅴ精品一区二区三区| 亚洲综合免费观看高清在线观看| 久久久激情视频| 精品久久一区二区| 91精品在线免费| 欧美日韩不卡在线| 在线观看一区不卡| 色综合激情久久| 成人av电影观看| 国产91丝袜在线播放九色| 久久精品久久综合| 毛片av中文字幕一区二区| 亚洲成a人v欧美综合天堂下载 | 尤物av一区二区| 亚洲摸摸操操av| 亚洲区小说区图片区qvod| 欧美国产成人在线| 国产午夜精品一区二区三区视频 | 国产欧美日韩精品在线| 久久精品免视看| 久久久亚洲欧洲日产国码αv| 欧美电影免费观看完整版| 欧美日本一区二区三区| 欧美专区亚洲专区| 欧美精品久久一区二区三区| 欧美精品在线视频| 884aa四虎影成人精品一区| 6080日韩午夜伦伦午夜伦| 91麻豆精品国产91| 日韩精品中文字幕一区 | www国产亚洲精品久久麻豆| 精品奇米国产一区二区三区| 日韩久久精品一区| 国产午夜精品在线观看| 1区2区3区精品视频| 亚洲欧美一区二区不卡| 一区二区三区不卡视频在线观看| 亚洲激情综合网| 亚洲成年人影院| 欧美成人免费网站| 中文字幕永久在线不卡| 欧美成人免费网站| 久久久国产精华| 国产美女在线精品| 一个色在线综合| 亚洲风情在线资源站| 美女视频免费一区| 国产成人精品影视| 99国产精品99久久久久久| 欧美在线免费观看亚洲| 欧美高清视频不卡网| 精品国产乱码久久| 国产精品福利av| 性久久久久久久久| 国产成人精品亚洲777人妖 | 久久狠狠亚洲综合| 国产suv精品一区二区6| 欧美午夜免费电影| 久久亚洲一区二区三区四区| 欧美激情在线一区二区| 亚洲电影第三页| 国产成人av一区二区三区在线观看| 99久久精品国产麻豆演员表| 欧美日韩国产一级二级| 久久久久久久性| 亚洲伊人色欲综合网| 国产又粗又猛又爽又黄91精品| 99久久亚洲一区二区三区青草| 欧美精品三级日韩久久| 国产欧美精品在线观看| 亚洲h精品动漫在线观看| 成人精品免费视频| 欧美一区二区三区视频在线观看| 久久综合久久综合九色| 香蕉av福利精品导航| 成人综合激情网| 欧美一区二区成人| 亚洲国产日韩综合久久精品| 国产精品一色哟哟哟| 欧美午夜电影一区| 综合分类小说区另类春色亚洲小说欧美| 日韩高清在线电影| 欧美中文字幕一区| 中文字幕永久在线不卡| 国产精品一区二区x88av| 欧美日韩欧美一区二区| 国产精品久99| 国产成人8x视频一区二区| 欧美刺激脚交jootjob| 午夜天堂影视香蕉久久| av在线一区二区| 亚洲午夜久久久久久久久电影网| 成人性生交大合| 精品国产乱码久久久久久久久 | 夜夜嗨av一区二区三区中文字幕| 国产毛片精品国产一区二区三区| 欧美日韩精品福利| 亚洲激情在线激情| 91美女片黄在线观看91美女| 国产日韩欧美不卡| 国产一区在线观看视频| 欧美成人激情免费网| 日本在线播放一区二区三区| 欧美日韩免费在线视频| 亚洲自拍另类综合| 欧美中文字幕久久| 亚洲国产乱码最新视频| 欧美日韩三级在线| 日韩国产精品91| 日韩欧美电影一区| 精品一区二区三区蜜桃| 欧美大片免费久久精品三p| 日韩国产一二三区| 欧美一级高清片| 全部av―极品视觉盛宴亚洲| 日韩一区二区麻豆国产| 久久精品国产**网站演员| 精品少妇一区二区三区免费观看 | 国产真实乱偷精品视频免| 欧美成人精品二区三区99精品| 精品午夜一区二区三区在线观看| 精品欧美一区二区在线观看| 国产精品123| 免费精品视频在线| 91精品一区二区三区久久久久久| 午夜成人在线视频| 正在播放亚洲一区| 久久av中文字幕片| 久久只精品国产| 韩国视频一区二区| 国产精品视频看| 91在线免费播放| 中文av一区二区| 国内精品第一页| 26uuu国产一区二区三区| 国产一区二区视频在线播放| 国产视频一区在线播放| 不卡电影一区二区三区| 综合自拍亚洲综合图不卡区| 精品一区二区三区在线播放 | 国产**成人网毛片九色| 国产精品视频观看|