自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

毛佳茗de代码

Mao's code

  • 博客(56)
  • 收藏
  • 关注

原创 nvidia 320.18 驱动安装失败的解决办法

自己标记一下:进入C盘nvidia驱动目录,删除nvidia gefirce experience文件夹,setup再次安装即可

2013-06-30 12:27:32 2045

原创 用友财务Excel转换为防伪税控开票系统TXT导入文件

朋友让我帮忙,希望能解决用友财务软件导出Excel文件与防伪税控开票系统之间的文件转换和导入。简单地用Excel宏实现了一下,使用方法很简单。1、打开Excel,注意要启用宏!2、将用友Excel数据复制到本Excel中。3、点击“导出TXT文件”即可。对应关系如下:名称 - 商品名称计量单位 - 单位单价 - 含税单价

2012-04-13 22:03:48 1960 1

转载 Finding a Loop in a Singly Linked List

MotivationA singly linked list is a common data structure familiar to all computer scientists. A singly linked list is made of nodes where each node has a pointer to the next node (or null to end th

2006-11-16 14:56:00 1768

转载 微软面试技术题

1、反转一个链表。循环算法。 List reverse(List l) { if(!l) return l; list cur = l.next; list pre = l; list tmp; pre.next = null; while ( cur ) { tmp = cur; cur = cur.next; tmp.next = pre pre = tmp; } return tmp; }

2006-11-16 14:44:00 1654

原创 [数据结构]KMP算法实现

#includestdio.h>#includestdlib.h>#define MAX 255void get_next(const char* T,int* next) // 算法4.7{    int i=0,j=-1;    next[0]=-1;    while (istrlen(T)) {        if(j==-1 || T[i]== T[j]) {            

2006-11-15 12:59:00 2498

原创 “凯撒”密文的破解编程实现

凯撒密文的破解编程实现程序原理:1.Kaiser Recovery 字典智能  破解方法:根据字典文件(dict.txt),求出明文可最大满足字典内单词的加密key。  程序特色:使用字典,可在无人工干涉的情况下,破解密文。2.Kaiser Recovery 人工辅助  破解方法:根据密文中字母出现的次数,从高到低,依次对应明文“e”,由用户自行判断是否正确。3.Kaiser Re

2006-09-19 19:43:00 2933 1

原创 [集中回复]来信询问C++电梯程序的问题

先后收到10多封邮件(分别来自eguoliang7、小西、路仔旋风、华中二版、小林等),询问C++电梯程序的问题,我在此给与集中回复:1.我的程序,模型为2层楼一个电梯2.将我的程序扩展为N层一个电梯,是可行的,且非常简单的3.将我的程序扩展为N层N个电梯,我认为是不可行的。4.由于本人时间有限,几乎不可能给任何人定制程序,这里只好说抱歉。5.欢迎与我交流程序,如果您愿意,可以

2006-05-21 23:40:00 2840 2

原创 清翔兔原创[数的本原元算法]

#include #include #include #include "BigNum.h"using namespace std;int euclid(int d,int f)  //欧几里得算法(最大公约数){ int m = d; int y = f; int r; while(1){  if(y==0) return m;  r = m % y;  m = y;  y = r; }}

2006-03-27 19:52:00 3642

原创 扩展欧几里得算法(最大公约数及逆元)算法

#include #include #include #include "BigNum.h"using namespace std;//扩展欧几里得算法(最大公约数及逆元)void ExtendedEuclid(int d,int f) { int q,x1,x2,x3,y1,y2,y3,t1,t2,t3; x1=1; x2=0; x3=f; y1=0; y2=1; y3=d; while(1

2006-03-27 19:47:00 2514 1

原创 教课书《应用密码学教程》page31,例题eg3-5完整解

#include using namespace std;//书本page31,例题eg3-5完整解void decode(char a){ int i = ((a-97)*9 -19)%26; char b = i+97; if (b cout }void main(){ string str = "fmxvedkaphferbndkrxrsrefmorudsdkdvshvufedkap

2006-03-27 19:40:00 1776

原创 《C++课程设计》报告

《C++课程设计》报告—— 基于模板的文本特征抽取器程序 一 、题目说明1、设计目标为便于实现对文本的处理,经常需要将文本中的字符序列转换成一个特征向量的序列。一般先给出一系列特征模板,如下面给出了三个特征模板:(a)  Cn (n= -2,-1,0,1,2 )(b)  CnCn+1( n=-2,-1,0,1)(c)  C-1C1例如,对于给定的字符序列“新华社记者”,

2006-02-23 14:47:00 10646 2

原创 大家别只看不说啊~~

每天都有新的来访者,却没看到一条留言...

2006-02-20 23:23:00 1514 1

原创 [C++]String类的实现

//代码参考C++primer.//String类的实现,清翔兔 06,Jan.#includeusing namespace std; class String{    friend ostream& operatorpublic:    String(const char* str=NULL);                //赋值构造兼默认构造函数(char

2006-01-23 01:18:00 18184 9

原创 [C++]实现异质链表

//异质链表,清翔兔 06,Jan.#include#includeusing namespace std;class data_rec{protected:       int ID;       string Name;       int Date;       bool Sex;  // 0:男  1:女public:       int get

2006-01-23 01:15:00 5081 5

原创 [C++]课题设计:电梯问题(第三版,本人最终版)

//Bell.h#ifndef BELL_H#define BELL_Hclass Bell{public: void Ring() {  cout  }};#endif //BELL_H //Building.h#ifndef BUILDING_H#define BUILDING_H#include "Elevator.h"#include "Floor.h"#inc

2006-01-22 22:00:00 6900 3

原创 [C++]第七次作业:实现一个大整数类BigInt

/*作业七1. 不同计算机系统中所能表示的证书的范围不同。如在一个32位的机器上,一个long类型的整数范围是-231~231-1。在某些应用中,需要处理比这个范围大得多的整数。不同的大整数的长度(数字位数)可能差别较大,请基于STL库中的list容器(双向链表)实现一个大整数类BigInt.*/#include "BigInt.h"void main(){ BigInt a = "993

2006-01-22 21:54:00 4622

原创 [C++]第六次作业:编写一个哈希(Hash)表类

//Hash.h#include using namespace std;/*设 Hash 函数为:Hash (key) = [ 字符串所有字母的ASCII码的和 ] MOD 51*/class HashElem {public: HashElem():Empty(0){} string Str; int Empty; HashElem *pNext;};class Hash {p

2006-01-22 21:53:00 1903

原创 [C++]第四次作业:引入类求解下列桌球城计费问题

// 程序仅在VS7.0下通过。/*1. 引入类求解下列桌球城计费问题:    某桌球城营业时间为9:00到23:00, 每张桌子收费标准为9:00到18:00或21:00到23:00为0.45元/分钟、 18:00到21:00为0.60元/分钟。 请编写一个C++程序,输入顾客占用一张桌子的起、止时间(精确到分钟), 输出计费结果。*/#include #include using name

2006-01-22 21:50:00 1223

原创 [C++]第一、二、三次作业

// TCPL ; Pages 105 ; 11// used set class ...// ...Sort the words before printing them.#include #include #include #include using namespace std;void main(){ string word ; typedef set StringSet; typ

2006-01-22 21:48:00 1300

原创 [C++]实验十一:通过定义一个循环链表类和Josephus类

#include "Josephus.h"void main(){ Josephus JosephusTest(10); //设有10个小孩 JosephusTest.Number(4,2);  //从第2个小孩开始,数到第4个人出列} #include #include using namespace std;class Josephus{public: Josephus(int

2006-01-22 21:45:00 2063 1

原创 [C++]实验八:学习类的聚集使用方法

//Dictionary.cpp#include "Dictionary.h"void Dictionary::AddWord(string word, string meaning){ if (_full>=100) cout  else {  words[_full].edit(word);  words[_full].addNewMeanings(meaning);  _full++

2006-01-22 21:43:00 1810

原创 [C++]实验七:类的对象成员的使用、复制构造函数的使用

/*1. 定义一个简单的Computer类,有数据成员芯片(cpu)、内存(ram)、光驱(cdrom)等等,有两个公有成员函数run、stop。cpu为CPU类的一个对象,ram为RAM类的一个对象,cdrom为CDROM类的一个对象,定义并实现这个类。要求:在主程序中定义一个Computer的对象,使用debug调试功能观察程序的运行流程,特别注意观察各个对象成员的构造与析构顺序。*/#inc

2006-01-22 21:41:00 3227

原创 [C++]实验六:类的静态成员的使用、多文件结构在C++程序中的使用

/*1. 定义一个CPU类,包含等级(rank)、频率(frequency)、电压(voltage)等属性,有两个公有成员函数run、stop。其中,rank为枚举类型CPU_Rank,定义为enum CPU_Rank {P1=1,P2,P3,P4,P5,P6,P7},frequency为单位是MHz的整型数,voltage为浮点型的电压值。观察构造函数和成员函数的调用顺序。*//*2.定义一

2006-01-22 21:37:00 5531

原创 [C++]实验五:掌握类的声明和对象的定义

/*1.构造计时类要求:建立Watch类,用来仿效秒表跟踪消逝的时间。提供两个成员函数Start()与Stop(),分别打开与关闭计时器。在该类中还包含一个Show()的成员函数,显示消逝的时间(以秒为单位)。*/#include #include using namespace std;class watch {public: void show(); void start(); v

2006-01-22 21:19:00 1732

原创 [C++]实验四:掌握内联函数的使用、参数个数不确定的函数的设计...

// 程序仅在VS7.0下通过。/*1. 编写重载函数Max1可分别求取两个整数,三个整数,两个双精度数,三个双精度数的最大值。*/#include using namespace std;double Max1 (double a,double b){ return (a>b)?a:b;}double Max1 (double a,double b,double c){ retu

2006-01-22 21:13:00 1666

原创 [C++]实验三

// Exmp3.1/*1.Write a simple menu program based on an array of function pointers. Each item of the menu corresponds to a function that can only include a simple text output statement. */#include usi

2006-01-22 21:10:00 915

原创 [C++]实验二:Pointer and Reference

// Expm2.1/*1.Write a function that is passed an array of n pointers to floats and return a pointer to the maximum of the n floats.*/#include using namespace std;float* Maximum(float *array[] ,con

2006-01-22 21:08:00 1030

原创 [C++]实验一:使用VC++6.0环境编写C++程序

// Expm1.1// Write a non-graphic standard C++ program:#include void main(void){    std::cout    std::cout}// 清翔兔/*2. Write a program that counts and prints the number of lines, words, and letter

2006-01-22 21:06:00 2840

原创 操作系统编程:进程管理(优先级)

//process.h// C++下,模拟进程调度,只考虑优先级和内层资源占用// 清翔兔 05/10/21 第三次修改#include using namespace std;const int eve_priority = 3;  //优先级减少数/次const int eve_time = 5;      //CPU运行时间片/次const int memMax = 100;    

2006-01-22 20:33:00 1432

转载 电话费管理系统:清华大学课程设计

转自jxyd.net的charly9-0:编制电话费统计管理系统,包括本地电话费(0.18元/3分钟)、国内长途电话全价(1.0元/分钟+附加费0.1元/分),注意分时段折扣(附加费不半价打折),如7:00(含)-21:00(不含)时段,周一至周五全价,周六及周日半价,21:00(含)-24:00(不含)时段全部半价,0:00(含)-7:00(不含)全部打3折、IP电话(0.3元/分钟+本地电

2006-01-22 20:30:00 4293 2

原创 [数据结构]第四次作业:二叉数的各种算法

/* ==============  Program Description  ============= */  /*               Freshare’s 4th of dswork             */  /* ================================================== */  #include "stdlib.h"  #incl

2006-01-22 20:21:00 2381 7

原创 [数据结构]课程设计:链表的维护与文件形式的保存

/* ========= 清翔兔 版权声明  ========= *//*    欲拷贝此源程序,请注明出处,谢谢.   *//* =====================================*/#include #include #include #include #define LEN sizeof(GOODS)#define FILENAME_LEN 10#defi

2006-01-22 20:18:00 2753

原创 [数据结构]第八次作业:快速排序

/* ==============  Program Description  ============= *//*               Freshares 8th of dswork             *//* ================================================== *//* 没有优化程序,只是实现了功能 (05年6月13日 最后一个

2006-01-22 20:11:00 1553

原创 [数据结构]第七次作业:二叉排序树

/* ==============  Program Description  ============= *//*               Freshares 7th of dswork             *//* ================================================== */#include "stdlib.h"#include "s

2006-01-22 20:10:00 1907

原创 [数据结构]第六次作业:图的建立、遍历、最小生成树、最短路径

/* 程序区分无向图和右向图的代码可以继续完善 *//* ==============  Program Description  ============= *//*               Freshares 6th of dswork             *//* ================================================== */#inc

2006-01-22 20:09:00 6847 2

原创 [数据结构]第五次作业:huffman编码及其译码(二)

/* ==============  Program Description  ============= *//*               Freshares 5th of dswork             *//* ================================================== */#include"stdio.h"#include"stri

2006-01-22 20:07:00 2614

原创 [数据结构]第五次作业:huffman编码及其译码(一)

/* ==============  Program Description  ============= *//*               Freshares 5th of dswork             *//* ================================================== */#include"stdio.h"#include"stri

2006-01-22 20:06:00 3726

原创 [数据结构]第三次作业:字符串替换

/* ==============  Program Description  ============= *//*               Freshares 3st of dswork             *//* ================================================== */#include#include#define MAXSTR

2006-01-22 19:58:00 2910

原创 [数据结构]第二次作业:表达式的计算

/* 头文件 */  #define OK             1  #define ERROR          0  #define OVERFLOW       -2  #define TRUE            1  #define FALSE           0  #define STACK_INIT_SIZE 100  #define STACKINCREMENT  10 

2006-01-22 19:56:00 1639

原创 [数据结构]第一次作业:将两个有序线形表合并成一个有序表

将两个有序线形表合并成一个有序表,要求分别按顺序存储结构和链式存储结构编程。   head_f.H文件:   #define OK             1    #define ERROR          0    #define INFEASIBLE     -1    #define OVERFLOW       -2    #define TRUE            1    #d

2006-01-22 19:52:00 7379

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除