zoukankan      html  css  js  c++  java
  • C和指针 (pointers on C)——第十章:结构和联合(下一个)锻炼

    //1、本章只为了刷存在演习。。

    typedef struct phone { char * quhao; char * jiaohuantai; char * zhanhaoma; }; typedef struct call { char * date; char * time; phone * shiyong; phone * self; phone * hujiao; }; 2、 typedef struct cash { float retail_price; float actual_price; float sales_tax; float licensing_fee; }; typedef struct daikuan { float retail_price; float actual_price; float sales_tax; float licensing_fee; float doun_payment; float loan_duration; float interst_rate; float monthly_payment; float name_of_bank; }; typedef struct zulin { float retail_price; float actual_price; float down_payment; float security_deposit; float monthly_payment; int lease_term; }; typedef struct sale { char name[20]; char address[40]; char model[20]; union { cash trade; daikuan trade; zulin trade; }; };


    版权声明:本文博客原创文章。博客,未经同意,不得转载。

  • 相关阅读:
    Redis其他知识
    Mybatis的sql语句操作
    Redis
    mybatis插件原理
    mybatis工作原理
    Mybatis逆向工程
    mybatis缓存机制
    Mybatis查询
    zabbix api添加主机
    jenkins + bitbucket 实现 pr自动构建及build状态通知
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4669350.html
Copyright © 2011-2022 走看看