Math.DivRem 取得商和余数

        int yushu;
        int shang = Math.DivRem(7, 2, out yushu);
        //yushu=1
        //shang=3

posted on 2011-06-13 00:07  瓦卡  阅读(349)  评论(0编辑  收藏  举报

导航