Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - c B
Search - c B - List
B.C个人通讯录(-Untreated personal directory (
Date : 2008-10-13 Size : 498.69kb User : 厂森

有一行电文, 已按下面规律译成了密码: A――>Z a――>z B――>Y b――>y C――>X c――>x ……….. ……….. 即第 1 个字母变成第 26 个字母, 第 2 个字母变成第 25 个字母, 第 i 个 字母变成第 (26-i+1) 个字母, 非字母字符时不变。 要求编出程序, 将密码还原成原文, 并输出原文到文件 decode.txt */
Date : 2008-10-13 Size : 3.28kb User : 冯艳华

繁体中文版,深度探索C++对象模型,作者是Stanley B.Lippman,由侯捷翻译。本书涵盖了C++对象模型的语意暗示,并指出这个模型是如何影响你的程序的。 本书重点:探索“对象导向程序所支持的C++对象模型”下的程序行为。对于“对象导向性质之基础实现技术”以及“各种性质背后的隐含利益交换”提供一个清楚的认识。检验由程序变形所带来的效率冲击。提供丰富的程序范例、图片,以及对象导向观念和底层对象模型之间的效率测量。
Date : 2008-10-13 Size : 1.3mb User : 谈谈

关于B减树用C写的小程序-tree on the B minus C write small programs
Date : 2008-10-13 Size : 19.6kb User : 土匪

using System; using System.Collections.Generic; using System.Text; namespace NewestCOServer { public class Cryption { class CryptCounter { UInt16 m_Counter = 0; public byte Key2 { get { return (byte)(m_Counter >> 8); } } public byte Key1 { get { return (byte)(m_Counter & 0xFF); } } public void Increment() { m_Counter++; } } private CryptCounter _decryptCounter; private CryptCounter _encryptCounter; private byte[] _cryptKey1; private byte[] _cryptKey2; private byte[] _cryptKey3; private byte[] _cryptKey4; private bool Decrypt2 = false; public Cryption() { _decryptCounter = new CryptCounter(); _encryptCounter = new CryptCounter(); _cryptKey1 = new byte[0x100]; _cryptKey2 = new byte[0x100]; byte i_key1 = 0x9D; byte i_key2 = 0x62; for (int i = 0; i 4 | buffer[i] < 4 | buffer[i] < 4 | buffer[i] << 4); buffer[i] ^= (byte)(_cryptKey4[_decryptCounter.Key2] ^ _cryptKey3[_decryptCounter.Key1]); _decryptCounter.Increment(); } } } public void GenerateKeys(UInt32 CryptoKey, UInt32 AccountID) { UInt32 tmpkey1 = 0, tmpkey2 = 0; tmpkey1 = ((CryptoKey + AccountID) ^ (0x4321)) ^ CryptoKey; tmpkey2 = tmpkey1 * tmpkey1; _cryptKey3 = new byte[256]; _cryptKey4 = new byte[256]; for (int i = 0; i < 256; i++) { int right = ((3 - (i % 4)) * 8); int left = ((i % 4)) * 8 + right; _cryptKey3[i] = (byte)(_cryptKey1[i] ^ tmpkey1 left); _cryptKey4[i] = (byte)(_cryptKey2[i] ^ tmpkey2 left); } Decrypt2 = true; } public void GenerateKeys2(byte[] InKey1, byte[] InKey2) { byte[] addKey1 = new byte[4]; byte[] addKey2 = new byte[4]; byte[] addResult = new byte[4]; //addKey1.i = 0; //addKey2.i = 0; byte[] tempKey = new byte[4]; long LMULer; // InKey1[0] = 0x20; // InKey1[1] = 0x5c; // InKey1[2] = 0x48; // InKey1[3] = 0xf4; // InKey2[0] = 0x00; // InKey2[1] = 0x44; // InKey2[2] = 0xa6; // InKey2[3] = 0x2e; //if (Key3) delete [] Key3; //if (Key4) delete [] Key4; _cryptKey3 = new byte[256]; _cryptKey4 = new byte[256]; for (int x = 0; x < 4; x++) { addKey1[x] = InKey1[3 - x]; addKey2[x] = InKey2[3 - x]; } //cout << "Key1: " << addKey1.i << endl; //cout << "Key2: " << addKey2.i << endl; uint Adder1; uint Adder2; uint Adder3; Adder1 = (uint)((addKey1[3] << 24) | (addKey1[2] << 16) | (addKey1[1] << 8) | (addKey1[0])); Adder2 = (uint)((addKey2[3] << 24) | (addKey2[2] << 16) | (addKey2[1] 8) & 0xff); addResult[2] = (byte)((Adder3 >> 16) & 0xff); addResult[3] = (byte)((Adder3 >> 24) & 0xff); for (int b = 3; b >= 0; b--) { // printf("%.2x ", addResult.c[b]); tempKey[3 - b] = addResult[b]; } tempKey[2] = (byte)(tempKey[2] ^ (byte)0x43); tempKey[3] = (byte)(tempKey[3] ^ (byte)0x21); for (int b = 0; b < 4; b++) { tempKey[b] = (byte)(tempKey[b] ^ InKey1[b]); } //Build the 3rd Key for (int b = 0; b < 256; b++) { _cryptKey3[b] = (byte)(tempKey[3 - (b % 4)] ^ _cryptKey1[b]); } for (int x = 0; x < 4; x++) { addResult[x] = tempKey[3 - x]; } Adder3 = (uint)((addResult[3] << 24) | (addResult[2] << 16) | (addResult[1] << 8) | (addResult[0])); LMULer = Adder3 * Adder3; LMULer = LMULer 32; Adder3 = Convert.ToUInt32(LMULer & 0xffffffff); addResult[0] = (byte)(Adder3 & 0xff); addResult[1] = (byte)((Adder3 >> 8) & 0xff); addResult[2] = (byte)((Adder3 >> 16) & 0xff); addResult[3] = (byte)((Adder3 >> 24) & 0xff); for (int b = 3; b >= 0; b--) { tempKey[3 - b] = addResult[b]; } //Build the 4th Key for (int b = 0; b < 256; b++) { _cryptKey4[b] = Convert.ToByte(tempKey[3 - (b % 4)] ^ _cryptKey2[b]); } Decrypt2 = true; //cout << "Int representation: " << charadd.i << endl; } } }
Date : 2010-04-08 Size : 3.47mb User : andesion@vip.qq.com

1. 基于链表实现线性表的以下基本操作: interface ILinarList<T> { void InsertNode(T a); //在表末尾插入元素 void InsertNode(T a, int i); //在指定的位置i插入元素 void DeleteNode(int i); //删除操作 T SearchNode(int i); //查找表元素 int SearchNode(T value); //定位元素 int GetLength(); //求表长度 void Clear(); //清空操作 bool IsEmpty(); //判断线性表是否为空 void Print(); //按位序打印线性表中的元素 void reverse(); //线性表元素就地逆置 } 2. 基于单链表实现线性表的以下综合应用: a) 利用基本操作编写以下算法 i. 删除第i个开始的k个元素。 ii. 删除递增有序单链表中所有值大于mink且小于maxk的元素。 b) 将x插入到单链表的适当位置上,以保持单链表中元素的有序性。 c) 将两个单链表合并为一个单链表。 d) 若两个元素按值递增有序排列的单链表A和B,且同一表中的元素值各不相同。试构造一个单链表C,其元素为A和B中元素的交集,且表C中的元素也按值递增有序排列。要求利用原有链表中的元素。
Date : 2011-06-02 Size : 231.76kb User : 1115401742@qq.cm

可以计算各种函数,还可以使用变量,如A,B,C,D。可以计算各种数学函数sin cos tg ctg,处理括号,四则运算,是VC中一款不可多得的表达式计算类和计算工具。例如:cos(0) 1-can calculate various functions, variables can also be used, such as A, B, C, D. Can calculate mathematical functions sin cos tg rays, handling brackets, four operators, one VC is a rare expression of calculating and computing tools. For example : cos (0) 1
Date : 2025-12-21 Size : 1.87mb User : 何福保

B.C个人通讯录(-Untreated personal directory (
Date : 2025-12-21 Size : 498kb User : 厂森

关于B减树用C写的小程序-tree on the B minus C write small programs
Date : 2025-12-21 Size : 311kb User : 土匪

编写一个程序实现顺序栈的各种基本运算,并在此基础上设计一个主程序完成如下功能: 1. 初始化栈S。 2. 判断栈S是否为空。 3. 依次进栈元素a,b,c,d,e。 4. 判断栈S是否为空。 5. 输出栈长度。 6. 输出从栈顶到栈底的元素。 7. 输出出栈序列。 8. 判断栈S是否为空。 9. 释放栈。-Realize the order of the preparation of a program stack of basic computing, and on this basis the design of a main program to complete the following functions: 1. Initialize stack S. 2. To determine whether the stack S is empty. 3. Elements into the stack followed by a, b, c, d, e. 4. To determine whether the stack S is empty. 5. The length of the output stack. 6. Output from the Top-stack at the end of the element. 7. Output sequence of the stack. 8. To determine whether the stack S is empty. 9. Release stack.
Date : 2025-12-21 Size : 4kb User : jiangyumin

a) 从指定的文本文件中读取文本信息; b) 将除去标点符号外的单词进行统计; c) 统计的单词不区分大小写(选做); d) 统计结果包含单词名称及在文本中出现的次数 e) 统计结果结束输出到控制台屏幕; f) 统计结果输出到指定的统计文件中; g) 统计结果按字母顺序排列。 -a) from the specified text file to read text messages b) to remove the punctuation outside the word statistics c) statistics are not case-sensitive (elected to do) d) results contain the names and words in the text number of emerging e) Statistical results of the end of the output to the console screen f) statistical results of the statistical output to the specified document g) results in alphabetical order.
Date : 2025-12-21 Size : 41kb User : 鲍辉云

有一行电文, 已按下面规律译成了密码: A――>Z a――>z B――>Y b――>y C――>X c――>x ……….. ……….. 即第 1 个字母变成第 26 个字母, 第 2 个字母变成第 25 个字母, 第 i 个 字母变成第 (26-i+1) 个字母, 非字母字符时不变。 要求编出程序, 将密码还原成原文, 并输出原文到文件 decode.txt */ -Has his message, has been translated into law by the following password: A-
Date : 2025-12-21 Size : 3kb User : 冯艳华

1. 已知数组A包含15个互不相等的整数,数组B包含20个互不相等的整数,试编制一程序,把既在A中又在B中的整数存放于数组C中 2. 设在A,B,C单元中分别存放着三个数,若三个数都不是0,则求出三数之和,并存放于D单元中,若其中有一个数为0,则把其它两个单元也清0,请编写此程序. 3. 试编写一程序,要求比较数组ARRAY中的三个16位补码数,并根据比较结果,在终端上显示如下信息(1)如果三个数都不相等则显示0(2)如果三个数有两个相等则显示1(3)若三个数都相等则显示3 4. 已定义了两个整数变量A和B,试编写程序完成下列功能:1)若两个有一个是奇数,则将奇数存入A中偶数存入B中2)若两个数均为奇数,则将两个数均加一后存回原量3)若两个数均为偶数则两个变量均不改变
Date : 2025-12-21 Size : 2kb User : furong

繁体中文版,深度探索C++对象模型,作者是Stanley B.Lippman,由侯捷翻译。本书涵盖了C++对象模型的语意暗示,并指出这个模型是如何影响你的程序的。 本书重点:探索“对象导向程序所支持的C++对象模型”下的程序行为。对于“对象导向性质之基础实现技术”以及“各种性质背后的隐含利益交换”提供一个清楚的认识。检验由程序变形所带来的效率冲击。提供丰富的程序范例、图片,以及对象导向观念和底层对象模型之间的效率测量。-Traditional Chinese version, in-depth exploration of C++ Object model, the author is the Stanley B. Lippman, by Hou Jie, translation. This book covers the C++ Semantic object model implied and pointed out that this model is how to affect your procedure. The focus of this book: explore the object-oriented program supported by C++ Object Model under the program behavior. For the basis for object-oriented nature of technology and implicit in a variety of nature behind the exchange of interests to provide a clear understanding. Inspection by the deformation process efficiency brought about by the impact. Program provides a wealth of examples, pictures, and object-oriented concepts and the underlying object model of efficiency between the measurements.
Date : 2025-12-21 Size : 1.3mb User : 谈谈

采用C语言编写程序,根据已知点绘制样条曲线,可以用于开发gambit脚本功能进行飞机翼型参数化建模(The program is written in C language, and the spline curve is drawn according to the known points)
Date : 2025-12-21 Size : 105kb User : 陈秀平

矩阵连乘: 设有矩阵M1,M2,M3,M4, 其维数分别是10×20, 20×50, 50×1 和1×100,现要求出这4个矩阵相乘的结果。我们知道,若矩阵A的维数是p×q,矩阵B的维数是q×r,则A与B相乘后所得矩阵AB的维数是p×r。按照矩阵相乘的定义,求出矩阵AB中的一个元素需要做q次乘法(及q-1次加法)。这样,要计算出AB就需要做p×q×r次乘法。为简单起见,且由于加法比同样数量的乘法所用时间要少得多,故这里我们暂不考虑加法的计算量。由于矩阵连乘满足结合律,故计算矩阵连乘的方式可以有多种。 例如,我们可以按M1(M2(M3M4))的方式去计算, 也可以按(M1(M2M3))M4的方式去计算,所得结果是相同的。 但是值得注意的是, 按前一方式计算需要做125,000次乘法, 而按后一方式计算只需要做2,200次乘法。 由此可见,矩阵连乘的运算次序对于所需要的计算量 (所需乘法次数)有着极大的影响。 M3M4:50*1*100=5,000;M2(M3M4):20*50*100=100,000 M1(M2(M3M4)):10*20*100=20,000 (M2M3):20*50*1=1000;(M1(M2M3)):10*20*1=200 ; (M1(M2M3))M4:10*1*100=1000(This algorithm for the C++ algorithm, can be applied directly, in which the value can be modified)
Date : 2025-12-21 Size : 3kb User : 皓子188

B tree indexing in c++ work on struckt that gave to it and search an index
Date : 2025-12-21 Size : 3kb User : farshad36

可以计算a+b的值,非常厉害的哦,哈哈哈(a+b,It'so good!lollolollolooloollollolo)
Date : 2025-12-21 Size : 385kb User : icecream1507

一个矩阵计算器 进入程序 输入A=[1 2 3 4;5 6 7 8; 9 10 11 12] 【横向一行】 输入B=X X X 输入C=X X X 输入D=X X X 支持多项矩阵加减乘,即E=AC,E=AD-C+B,E=ADB-C这一类的,矩阵在6*6以内,项数不定,加减乘运算顺序不定 输入E=A*B+C-D【例子】 输出矩阵形式的答案 E= x x x…… x x x…… x x x……(Matrix calculation for C language)
Date : 2025-12-21 Size : 15kb User : Master_King

本代码为三次B样条曲线插值算法,ZIP压缩包为整个工程,可直接使用(This code is cubic B-spline curve interpolation algorithm, ZIP compression package for the whole project, can be used directly.)
Date : 2025-12-21 Size : 37.44mb User : 陈哈
« 12 3 4 5 6 7 8 9 10 ... 16 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.