搜索资源列表
inttofloat
- 将int类型数据转化为float型。对于没有浮点运算器的平台非常适合。-will int data type conversion to float type. For no floating point unit is suitable for the platform.
8queen_sc
- #if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen
hacK
- * first open client.cpp and search for that USER_MSG_intERCEPT(TeamInfo) over it u add this Code: USER_MSG_intERCEPT(Health) { BEGIN_READ(pbuf,iSize) me.iHealth = READ_BYTE() return USER_MSG_CALL(Health) } *
遗传算法SGA
- 包含一个cpp文件,含有main()函数! 主要函数如下 void InitData(); int Flip(float probabiliby); float Random(); //generate a pseudorandom integer from 0 to 1 void ResetRandom(); //reset pseudorandom integer array fRand float ObjFunc(float vx); float DeC
float_char_int_string.rar
- 各种基本数据类型转换源程序。 本程序涉及到的数据类型有:float, int , char, string.,A variety of basic data type conversion source. This procedure involves the data types are: float, int, char, string.
baoliuxiaoshu
- 编写函数double fun(double x, int m),它的功能是将浮点数X保留M个小数,第M+1位四舍五入,如输入123.456,保留两位小数输出123.46-The preparation of function double fun (double x, int m), its function is to float X retained a small number of M, the first M+1 bit rounded, such as the importation
CseApi20
- CseApi20.zip是CSE脚本语言的底层封装库,用C++封装常用对象,包括int、Wideint、float、Object对象、char数组(即string)、int数组、object数组、字典dict等,由于封装是轻量级的,常用作基础类型库来支持Win32软件开发,如果使用STL容器等觉得不便时,这个库是很好的替代方案。-CseApi20.zip is the underlying scr ipting language package CSE database, using C++ p
4-4
- 设计一个银行账户(Account)类,包含户名、帐号以及当前余额属性,可完成开户、存款、取款和查询余额等行为。银行账户类的定义如下: class Account { private: char mName[20] //银行账户的户名 long mSN //本账户的帐号 float mBalance //本账户当前的余额 public: Account(char name[],long num,float amount) //类的构造函数 ~A
tofloat
- Converting int to float
Test
- 测试代码,主要看int类型转换float后是怎么转换的。-Test code, mainly to see the int type float after conversion is how to convert.
script_interpreter
- 一个用c语言写的解释器,有三种数据类型:int、float、string。支持+ -×/和print功能。虽然很小,但有很强的参考意义,容易扩展-A simple interpreter, there are three data types: int, float, string. Support+- ×/and print functions. Although small, but has a strong reference value, easy to extend
e
- 题1:编写一个对具有n个元素的数组x[]求最大值的程序,要求将求最大值的函数设计成函数模板。 题2:编写一个函数模板add,能够实现int,double, float, char数据类型的加法运算(包括它们之间的混合加法运算)。 题3:定义一个类模板Sample实现int,double, float数据类型的比较,并能给出最大值,最小值;-Problem 1: Write one pair of n-element array x [] seek maximum
c-P-P-algorithm-procedures
- 程序开始运行,要求用户首先输入两个大数。 然后进行菜单选择,进行相应的大数运算。 分析说明:由于大数的范围太大,不能直接定义为int或者float等, 所以我们的想法就是定义成字符串类型, 输入的数字一位一位地存入字符数组里面。 然后在运算的时候也是一位一位地运算。 这个过程就得从最基本的数学运算法则做起,不乏多种判断。 涉及到数组和指针的应用。最难的就是判断情 况还有应用数组和指针过程中出现的多种未可预知的错误, 还得通过逐步调试慢慢找出。我们先从加减
openGLwater
- 操作指导7水纹 一、 建立工程 二、 添加函数和变量,修改头文件(view.h) public: int npoint float lpoint[4][4] float cpoint[102][76][3] void drawplat() void lm() BOOL movekey CClientDC *my_pDC CRect my_oldRect BOOL mytbar BOOL mysbar
minic_interpreter
- 一款比较完善的强大的C语言解释器,附带源码,可以嵌入到用户应用程序中。支持对比较复杂的C代码的解释执行。完美支持各种标准C语言语法,如if-else结构语句, ?:结构求值语句,for循环,while循环,do...while循环等 支持各种数据类型包括: char,short,int,string,float 支持多维数组及指针 支持自定义函数以及系统函数 支持局部变量以及全局变量,允许在变量定义时直接初始化 支持局部变量层次化作用域;允许定义系统常量;支持系统内部定义数据类型,但不支持用户在
vcnetstringdemos
- 收集了一些VC.NET字符串的操作演示实例源码,比如对字符串进行连接,字符串比较,从字符串中存取字符,如何计算一个字符串的大小,如何使用VC快速格式化一个字符串,如何将Cstring类型的字符串转换成int型和float型,如何让字符串赋值给字符指针等技巧,很小的例子,都挺简单,适合初学者。-Collected some VC.NET string operation and demonstration source code examples, such as the connection s
tofloat
- Converting int to float
tofloat
- Converting int to float
Test_int_to_float
- Test int to float extends DxTestCase for Linux.
float_2_int.v
- 最全的,最简单,32位浮点数转整数,32位整数转浮点数,直接可以移植,已经测试过好用。(The most complete, the simplest, 32 bit floating-point integer, 32 integer floating point number, can be directly transplanted, has been tested, easy to use.)