当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 本人现在做的项目要求对数值型货币,转换成大写,在网上搜索了半天,没有找到C#写的类型,不得不自己写了,测试了,还能满足要求,只是算法有点繁琐,有哪位大虾再给改改! 下面就是我得代码:using System;using System.Drawing;using System.Collectio...
 

 

    摘要:我的电脑安装的是windows2003服务器版,只有一块40gb硬盘,分区如下:第一个主分区:5gb 活动分区 ntfs第二个主分区:5gb linux ex2fs扩展分区: 30gb在扩展分区中:第一逻辑分区:10gb fat32第二逻辑分区:20gb fat32 在第二个主分区中安装freebsd,并且将它格式化成为ffs格式。但是在安装过程中出错。退出安装过程,回到windows2003种......
    摘要:<script runat="server">sub page_load if not page.ispostback then dim urls = new sortedlist() urls.add("google", "http://www.google.com") urls.add("msn", &......


(C#)数值型货币的大写转换

     本人现在做的项目要求对数值型货币,转换成大写,在网上搜索了半天,没有找到c#写的类型,不得不自己写了,测试了,还能满足要求,只是算法有点繁琐,有哪位大虾再给改改!

     下面就是我得代码: 【程序编程相关:Win32位程序设计初步之服务

【推荐阅读:怎样做需求分析

using system; 【扩展信息:虚拟设备驱动程序的设计与实现

using system.drawing;

using system.collections;

using system.componentmodel;

using system.windows.forms;

using system.data;

namespace winmarket

{

 /// <summary>

 /// classfun 的摘要说明.

 /// </summary>

 public class classfun

 {

  private string capstr;

  

  public classfun()

  {

   //

   // todo: 在此处添加构造函数逻辑

   //

  }

  public string moneynumtocap(decimal num)

  {

   string cap="零壹贰叁肆伍陆柒捌玖";

   string numstr="0123456789";

      string moneynumstr=num.tostring();

   int pint=moneynumstr.indexof(".");

            int numint;

            string moneyint=null;

   string moneydec=null;

   string intstr=null;

   string moneycap=null;

   string moneyintstr=null;

   string moneydecstr=null;

//   capstr=pint.tostring();

 

   if(pint!=-1)

   {

    string strarr=".";


...   下一页
 ·利用树型结构进行排序    »显示摘要«
    摘要:前段时间遇到一个排序的问题,是对一个数组进行排序,数组中存放的是有级别的对象(已经由oracle的connect 进行分级),但是每级内的对象顺序是乱的,下面这个类完成了排序功能package dsn; import java.util.*;import log.*;import model.*; public class requiresorter2{ log4jwrapper log = ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE