蓝白饭碗吧 关注:77贴子:1,669
  • 8回复贴,共1

鸡蛋六只,糖呢两茶匙,仲有D橙皮添 ~

只看楼主收藏回复

吃蓝白


IP属地:广东1楼2011-08-24 17:51回复



    IP属地:广东2楼2011-08-28 20:46
    回复



      


      IP属地:广东3楼2011-08-30 18:41
      回复



        


        IP属地:广东4楼2011-08-30 18:52
        回复
          BOON-SUTAZIO-201-ChinaMode


          IP属地:广东7楼2011-10-01 23:09
          回复
            #include <iostream>
            #include <string>
            using namespace std;
            class Invoice
            {
            public:
            Invoice( string aNumber, string aDescription, int aQuantity, int aPrice )
            {
            setpartNumber( aNumber);
            setpartDescription( aDescription );
            setpurchasedQuantity( aQuantity );
            setperPrice( aPrice );
            }
            void setpartNumber( string aNumber )
            {
            number = aNumber;
            }
            string getpartNumber()
            {
            return number;
            }
            void setpartDescription( string aDescription )
            {
            description = aDescription;
            }
            string getpartDescription()
            {
            return description;
            }
            void setpurchasedQuantity( int aQuantity )
            {
            quantity = aQuantity;
            }
            int getpurchasedQuantity()
            {
            return quantity;
            }
            void setperPrice( int aPrice )
            {
            price = aPrice;
            }
            int getperPrice()
            {
            return price;
            }
            string coutnumber()
            {
            cout << number << endl;
            return number;
            }
            string coutdescription()
            {
            cout << description << endl;
            return description;
            }
            int coutquantity()
            {
            cout << quantity << endl;
            return quantity;
            }
            int coutprice()
            {
            cout << price << endl;
            return price;
            }
            void getInvoiceAmount( int value )
            {
            value = quantity * price;
            cout << value << endl;
            }
            private:
            string number;
            string description;
            int quantity;
            int price;
            };
            int main()
            {
            string aNumber;
            string aDescription;
            int aQuantity;
            int aPrice;
            cin >> aNumber >> aDescription ;
            cin >> aQuantity >> aPrice;
            if ( aQuantity < 0 )
            {
            aQuantity = 0;
            }
            if ( aPrice < 0 )
            {
            aPrice = 0;
            }
            Invoice invoice( aNumber, aDescription, aQuantity, aPrice );
            invoice.coutnumber();
            invoice.coutdescription();
            invoice.coutquantity();
            invoice.coutprice();
            int coutvalue;
            coutvalue = 0;
            invoice.getInvoiceAmount( coutvalue );
            }
            


            IP属地:广东8楼2011-10-27 15:47
            回复
              传说中的豪哥语录集


              IP属地:四川9楼2011-10-29 19:02
              回复
                http://222.201.145.177:9090


                IP属地:广东10楼2011-12-08 13:42
                回复
                  #include<iostream>using namespace std;
                  int main(){ int a; int b , c ,d ,e ,f;
                  for(int i = 0;i < 2; i++) { cin >> a; b = a / 10000; f = a % 10; c = (a - b * 10000) / 1000; e = (a % 100) / 10; d = (a % 1000) / 100;
                  if((b == f) && (c == e)) cout << "true" << endl; else cout << "false" << endl; b = 0; c = 0; d = 0; e = 0; f = 0; }
                  return 0;}


                  IP属地:广东11楼2011-12-08 14:58
                  回复