zoukankan      html  css  js  c++  java
  • OC标准注释

    /*!
     * @class Calculator
     * This class implements a key-press--based calculator engine.
     * @throws NSInvalidArgumentException
     */

    #import <Foundation/Foundation.h>

    @interface Calculator : NSObject {
    @private
       NSMutableString *_display;    // The calculator display (the value a harwdare-based calculator shows on its LCD screen).
       double           _operand;
       NSString        *_operator;
    }

    - init;


    /*!
     * @method input:
     * Receives input into the calculator.
     *
     * Valid characters:
     *
     *     Digits:    .0123456789
     *
     *     Operators: +-×/=
     *
     *     Commands:  D     Delete
     *                C     Clear
     *
     * @throws NSInvalidArgumentException when character is not valid.
     */
    - (void) input:(NSString *) character;


    /*!
     * @method displayValue
     * Provides the value in the calculator’s “display.”
     */
    - (NSString *) displayValue;

    @end

  • 相关阅读:
    2014第16周六
    2014第16周五
    2014第16周四
    2014第16周三CSS布局再学习摘录
    2014第16周二
    2014第16周一
    2014第15周日
    2014第15周六
    2014第15周五
    SDN:软件定义网络
  • 原文地址:https://www.cnblogs.com/wustlj/p/2631400.html
Copyright © 2011-2022 走看看