搜索资源列表
Answer C2
- 实现标准库函数strstr的功能:在str1中查找str2,若找到,返回指向str1中第一次出现str2的位置; int A ( const char * str1, const char * str2 ); 没有的话,返回-1 有则返回所在位置(从0开始) 写出函数,对编写函数main完成对strstr的功能的验证。 -achieve the standard library functions strstr function : the search for str
intToFloat
- 将int类型数据转化为float型。对于没有浮点运算器的平台非常适合。-will int data type conversion to float type. For no floating point unit is suitable for the platform.
fraction
- 实现了C++的分数类,实现的分数与整数,分数与int,整数与int的混合操作,用多态和虚函数来实现digit_number()
3
- 关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为0,1,2,3;但他们都有河这边和那边两种状态;为方便则定义一个结构,只含一个int型变量n;当在河这边时n设为0;在河那边时n设为1。由于每次过河与返回都要考虑狼能否吃羊或羊能否吃白菜;则需要一个函数来判断每次选择是否满足条件。
superAPlusB
- 实现远大于int表示范围的整数相加-superA+B
AlgoTimer
- 数据结构中的ADT timer程序,上传了源代码和基本的算法-The introduction of abstrct data stucture ,hope you enjoy int
int-to-string
- int to string;int t o string;int t o string;int t o string;int t o string;int t o string;int to string;-int to string;
TotalEven
- Recursive function Called int TotalEven (int * numbers, int size, int * odd). This function takes an array of numbers, size and pointer to any number (in main) numbers representing the number of e - pair. Put function to odd numbers the number
Palindrom
- This a recursive function, without loops titled: int is_palindrom (char arr [], int len) Accepts an array of characters and length. The function return 1 if the array contains a palindrome (a series of characters that particular cry from the b
list
- void print(void) //遍历链表输出 int length(void) //求链表长度 void insert_head(double value) //链头插入 void insert_tail(double value) //链尾插入 void insert_k(int k, double value) //第k个元素后插入 void delete_head(void) //链头结点删除 void delete_tail(void) //链尾
list2
- 异质链表 void print(void) //遍历链表输出 int length(void) //求链表长度 void insert_head(double value) //链头插入 void insert_tail(double value) //链尾插入 void insert_k(int k, double value) //第k个元素后插入 void delete_head(void) //链头结点删除 void dele
int
- 输入一个数字int转换成字符char,程序短小,适合练习!-int to char
Expression-evaluation
- 输入中缀算术表达式S,S中的操作数为非负整数,只含+,-和*,/运算,也可能含有括号(),运算符的计算顺序和实际四则运算的计算顺序相同. 输出表达式S的值. 注意除法运算只取整数部分,例如1/2=0. Input 输入有多组数据. 每组数据是一个算术表达式S,S的长度不超过100. 输入的S保证合法,而且不包含多余的空格或制表符. S的操作数、中间结果和最终结果都不会超过int类型的范围,也不会出现除数为0的情况. 输入以#号结束. Output 对于每个算术表达式S,输
Post-Office
- 算法设计与分析中邮局选址问题。 select(int[] array, int begin, int end, int middle)将n个输入元素划分成n/5个组,每组5个 元素,只可能有一个组不是5个元素。用任意一种排序算法,将每组中的元素排好序,并取出每组的中 位数,共n/5个。找出这n/5个元素的中位数。如果n/5是偶数,就找它的2个中位数中较大的一个。 以这个元素作为划分基准。在调用时,只需要将middle参数传入array.length/2就能找到整个数组中的
jisuanqi
- 自己写的计算器,写的玩的,CSTRING,之前类型是INT-Write your own calculator, written play, CSTRING, before the type is INT
Cpp1
- 设计一个名为Account 类。这个类包含: (1)一个名为id 的int 型数据域,表示账户的身份号(默认值为0)。 (2)一个名为balance 的double 型数据域,表示账户余额(默认值为0)。 (3)一个名为annualInterestRate 的double 型数据域,保存当前年利率(默认值为0)。 (4)一个无实参构造函数,创建一个默认账户。 (5)id、balance 和annualInterestRate 的访问器和更改器函数。 (6)一
hugeint
- C++的一个类HugeInt(头文件形式)实现大整数加,乘,乘方,能计算12345^3456等大数-A Class named HugeInt to compute huge int plus, times and so on
MAXInt
- max int , simple project to demo
ReadFile_And_WriteFile-Demo(VS2013)
- 对上次本人用dev c写的读写文件的程序进行改写,这次是用VS2013写的,将读文件与写文件分别封装成两个独立的函数放到两个独立的文件.cpp(.h)中,便于以后根据自己的需要对函数功能进行相应的扩展。读文件操作制将某一文件的二进制流读出写到一个txt文件中,写文件指将事先写好的数组中的数据一二进制流的形式写成一个新的文件。 两个函数原型: void ReadFile(char* readfilename, char* writefilename) void WriteFile(c
High-precision-factorial
- 高精度阶乘运算,可以计算到很大的值,弥补了使用int型变量带来的数值限制-Precision factorial operation can be calculated to a large value, to make up for the numerical limit the use of int type variables to bring the