Welcome![Sign In][Sign Up]
Location:
Search - C-Minus

Search list

[JSP/JavaL1_vector

Description: 输入四个点,判断此四点是否可形成一个平行四边形。 程序中描述了一个抽象数据类型Vector2D,表示一个向量。具有(x,y)两个值。其本身具有减另一个向量(minus(Vector2D)),判断自身是否为零向量(iszero()),与另一个向量对应值y,x乘积之差(inner(Vector2D))。由于两个向量平行,则乘积之差x1*y2-x2*y1=0。点A,B,C,D四点组成平行四边形的条件是AB//CD,BC//DA且各个向量皆不为零向量。 首先声明四个向量。向量i获得值的方法是由getPoint(int i)获得。然后根据Vector2D重载后的toString()函数将各个向量输出查看。最后判断此四点是否可组成平行四边行。
Platform: | Size: 3183 | Author: malacca | Hits:

[Windows DevelopB减树

Description: 关于B减树用C写的小程序-tree on the B minus C write small programs
Platform: | Size: 20075 | Author: 土匪 | Hits:

[Windows Develop加减乘除四则运算 

Description: 这是从网上下载下来的一个计算程序,能实现加、减、乘、除的计算。该程序接受 的是16进制数。 执行时,需在文件名后直接跟上计算表达式,如在命令提示符下执行结果如下: c:\\masm>js 3+2 5 c:\\masm>js 6*7 2A c:\\masm>js 10-4 c c:\\masm>js 12/3 6-This downloaded from the Internet from a computer program can achieve, plus or minus, by, in addition to the calculation. The program is acceptable to the 16-band number. Implementation required in the file name directly to keep up with the formulas, such as the command prompt implementation of the results is as follows : c : \\ masmgt; Js 3 2 5 c : \\ masmgt; Js 6 * 7 2A c : \\ masmgt; Js 10-4 c c : \\ masmgt; js 12 / 3 6
Platform: | Size: 3831 | Author: 赖毅勇 | Hits:

[Other resource200801e

Description: 最新仙镜传说服务器C语言源码 Retouch about problem of increase in quantity at the CART, when enter the an minus quantity in the CLIENT. Retouch about problem of not recovery,use POTIONPITCHER skill.
Platform: | Size: 1180050 | Author: dingky | Hits:

[Otherhexmine

Description: 自己用C编写的小游戏,DOS界面哦,可以运行。 浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较,以及浮点数分柝等。 包含头文件 \"fn.hpp\" #include \"fn.hpp\" 浮点数基本运算 浮点数的基本运算中有加、减、乘、除、取负、绝对值、相等比较等。 加减乘除 加、减、乘、除四个运算极为相似,都是需要两个参数,结果当然也是浮点数了。 例子: // 加 减 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的结果 btil::fn::minus<f1, f2>::value // f1-f2 的结果 btil::fn::multiplies<f1, f2>::value // f1*f2 的结果 btil::fn::divides<f1, f2>::value // f1/f2 的结果 plus<f1, f2>::value::f_val // f1+f2 的结果的值 struct one { static const double f_val = 1.0 } // 两个浮点数 struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取负 取负运算就是取一个浮点数的负数。-prepare themselves with a small C games, DOS interface, oh run. Float Float basic operations of the basic operations are four major operations, symbols, sizes, and float-watchman's rattle so. The first document contains "fn.hpp" # include "fn.hpp" float float basic operations of the basic operations are, plus or minus, riding, except from negative, in absolute terms, a comparison of the same. The arithmetic, plus or minus, multiplication and four Operational very similar, two parameters are needed, of course, is the result of the float. Example : / / arithmetic btil : : fn : : pluslt; F1, f2gt; : : Value / / f1 f2 results btil : : fn : : minuslt; F1, f2gt; : : Value / / f1 - f2 btil the results : : fn : : multiplieslt; f1, f2gt; : : value / / f1 - f2 results btil :
Platform: | Size: 273351 | Author: 杨海青 | Hits:

[ELanguagepl/0

Description: /*PL/0编译系统C版本头文件pl0.h*/ /* typedef enum { false, true } bool; */ #define norw 13 /*关键字个数*/ #define txmax 100 /*名字表容量*/ #define nmax 14 /*number的最大位数*/ #define al 10 /*符号的最大长度*/ #define amax 2047 /*地址上界*/ #define levmax 3 /*最大允许过程嵌套声明层数[0,levmax]*/ #define cxmax 200 /*最多的虚拟机代码数*/ /*符号*/ enum symbol{ nul, ident, number, plus, minus, times, slash, oddsym, eql, neq, lss, leq, gtr, geq, lparen, rparen, comma, semicolon, period, becomes, beginsym, endsym, ifsym, thensym, whilesym, writesym, readsym, dosym, callsym, constsym, varsym, procsym, }; #define symnum 32 /*名字表中的类型*/ enum object{ constant, variable, procedur, }; /*虚拟机代码*/ enum fct{ lit, opr, lod, sto, cal, inte, jmp, jpc, }; #define fctnum 8 /*虚拟机结构代码*/ struct instruction { /*454*/ enum fct f; // 虚拟机代码指令 int l; //引用层与声明层的层次差 int a; //根据f的不同而不同 }; FILE * fas; //输出名字表 FILE * fa; //输出虚拟机代码 FILE * fa1; //输出源文件及其各行对应的首地址 FILE * fa2; //输出结果 bool listswitch; //显示虚拟机代码与否 bool tableswitch; //显示名字与否 char ch; //获取字符的缓冲区,getch使用 enum symbol sym; //当前的符号 char id[al+1]; //当前ident,多出的一个字节用于存放0 int num; //当前number int cc,ll; //getch使用的计数器,cc表示当前字符(ch)的位置 int cx; //虚拟机代码指针,取值范围[0,cxmax-1] char line[81]; //读取行缓冲区 char a[al+1]; //临时符号,多出的一个字节用于存放0 struct instruction code[cxmax]; //存放虚拟机代码的数组 char word[norw][al]; //保留字 enum symbol wsym[norw]; //保留字对应的符号值 enum symbol ssym[256]; //单字符的符号值 char mnemonic[fctnum][5]; //虚拟机代码指令名称 bool declbegsys[symnum]; //表示声明开始的符号集合 bool statbegsys[symnum]; //表示语句开始的符号集合 bool facbegsys[symnum]; //表示因子开始的符号集合 //名字表结构 struct tablestruct { char name[al]; //名字 enum object kind; //类型:const,var,array or procedure int val; //数值,仅const使用 int level; //所须层,仅const不能用 int adr; //地址,仅const不能用 int size; //需要分配的数据空间,仅procedure使用 }; struct tablestruct table[txmax]; //名字表 FILE * fin; FILE * fout; char fname[al]; int err; //错误计数器 //当函数中发生fatal error时,返回-1告知调用它的函数,最终退出程序 #define getsymdo if(-1==getsym()) return -1 #define getchdo if(-1==getch()) return -1 #define testdo(a,b,c) if(-1==test(a,b,c)) return -1 #define gendo(a,b,c) if(-1==gen(a,b,c)) return -1 #define expressiondo(a,b,c) if(-1==expression(a,b,c)) return -1 #define factordo(a,b,c) if(-1==factor(a,b,c)) return -1 #define termdo(a,b,c) if(-1==term(a,b,c)) return -1 #define conditiondo(a,b,c) if(-1==condition(a,b,c)) return -1 #define statementdo(a,b,c) if(-1==statement(a,b,c)) return -1 #define constdeclarationdo(a,b,c) if(-1==constdeclaration(a,b,c)) return -1 #define vardeclarationdo(a,b,c) if(-1==vardeclaration(a,b,c)) return -1 void error(int n); int getsym(); int getch(); void init(); int gen(enum fct x,int y ,int z); int test(bool *s1,bool *s2,int n); int inset(int e,bool *s); int addset(bool *str,bool * s1,bool * s2,int n); int subset(bool *str,bool * s1,bool * s2,int n); int mulset(bool *str,bool * s1,bool * s2,int n); int block(int lev,int tx,bool * fsys); void interpret(); int factor(bool * fsys,int * ptx,int lev); int term(bool * fsys,int * ptx,int lev); int condition(bool * fsys,int * ptx,int lev); int expression(bool * fsys,int * ptx,int lev); int statement(bool * fsys,int * ptx,int lev); void listcode(int cx0); int vardeclaration(int *ptr, int lev,int *ptx); int constdeclaration(int *ptr, int lev,int *ptx); int position(char * idt,int tx); void enter(enum object k,int * ptx,int lev, int * pdx); int base(int l,int * s,int b)
Platform: | Size: 25139 | Author: xqq771084591 | Hits:

[Windows DevelopB减树

Description: 关于B减树用C写的小程序-tree on the B minus C write small programs
Platform: | Size: 318464 | Author: 土匪 | Hits:

[Windows Develop加减乘除四则运算 

Description: 这是从网上下载下来的一个计算程序,能实现加、减、乘、除的计算。该程序接受 的是16进制数。 执行时,需在文件名后直接跟上计算表达式,如在命令提示符下执行结果如下: c:\masm>js 3+2 5 c:\masm>js 6*7 2A c:\masm>js 10-4 c c:\masm>js 12/3 6-This downloaded from the Internet from a computer program can achieve, plus or minus, by, in addition to the calculation. The program is acceptable to the 16-band number. Implementation required in the file name directly to keep up with the formulas, such as the command prompt implementation of the results is as follows : c : \ masmgt; Js 3 2 5 c : \ masmgt; Js 6* 7 2A c : \ masmgt; Js 10-4 c c : \ masmgt; js 12/3 6
Platform: | Size: 3072 | Author: 赖毅勇 | Hits:

[Otherhexmine

Description: 自己用C编写的小游戏,DOS界面哦,可以运行。 浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较,以及浮点数分柝等。 包含头文件 "fn.hpp" #include "fn.hpp" 浮点数基本运算 浮点数的基本运算中有加、减、乘、除、取负、绝对值、相等比较等。 加减乘除 加、减、乘、除四个运算极为相似,都是需要两个参数,结果当然也是浮点数了。 例子: // 加 减 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的结果 btil::fn::minus<f1, f2>::value // f1-f2 的结果 btil::fn::multiplies<f1, f2>::value // f1*f2 的结果 btil::fn::divides<f1, f2>::value // f1/f2 的结果 plus<f1, f2>::value::f_val // f1+f2 的结果的值 struct one { static const double f_val = 1.0 } // 两个浮点数 struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取负 取负运算就是取一个浮点数的负数。-prepare themselves with a small C games, DOS interface, oh run. Float Float basic operations of the basic operations are four major operations, symbols, sizes, and float-watchman's rattle so. The first document contains "fn.hpp"# include "fn.hpp" float float basic operations of the basic operations are, plus or minus, riding, except from negative, in absolute terms, a comparison of the same. The arithmetic, plus or minus, multiplication and four Operational very similar, two parameters are needed, of course, is the result of the float. Example :// arithmetic btil : : fn : : pluslt; F1, f2gt; : : Value// f1 f2 results btil : : fn : : minuslt; F1, f2gt; : : Value// f1- f2 btil the results : : fn : : multiplieslt; f1, f2gt; : : value// f1- f2 results btil :
Platform: | Size: 273408 | Author: 杨海青 | Hits:

[assembly languagesizeyunshuan

Description: 这是从网上下载下来的一个计算程序,能实现加、减、乘、除的计算。该程序接受 的是16进制数。 执行时,需在文件名后直接跟上计算表达式,如在命令提示符下执行结果如下: c:\masm>js 3+2 5 c:\masm>js 6*7 2A c:\masm>js 10-4 c c:\masm>js 12/3 6-This is downloaded from the Internet from a computer program can achieve, plus or minus, by, in addition to the calculation. The program is acceptable to the 16-band number. Implementation required in the file name directly to keep up with the formulas, such as the command prompt implementation of the results is as follows : c : \ can
Platform: | Size: 3072 | Author: xiaoqiang | Hits:

[Othershuzhifenxikechengsheji

Description: 本程序代码是用c/c++编写的,主要功能是实现多项式的加、减、乘、除,采用指针和链表,算法参考了其他书上的,但是代码全部是由自己写的,只是在出错处理上不是太严格-the code is c/c prepared by the main function is a polynomial, plus or minus, multiplication and addition, Listless and indicators used, the algorithm as a reference book, but all the code is written by ourselves, the only error handling is not too strict
Platform: | Size: 3072 | Author: 超哥 | Hits:

[Data structsfushusizeyunsuan

Description: 此程序由C++语言编写而成,主要功能是实现复数之间的加、减、乘、除的运算,分别由数字键1、2、3、4代替。包含设计报告-this procedure prepared by the C language, the major function of the complex, plus or minus, multiplication, addition to the operator, Key figures from the 1, 2, 3 and 4 instead. Includes design report
Platform: | Size: 12288 | Author: 许元雪 | Hits:

[Otherhighprecision_operation_c

Description: 用c语言实现的,高精度的加、减、乘、除(c语言)算法,rar格式-use of the c language, precision, plus or minus, multiplication and (c language) algorithm, rar format
Platform: | Size: 2048 | Author: chenying | Hits:

[SCMCALLsle4

Description: 这是调用SLE4442卡汇编程序(SSLE4.ASM)的C51程序, */ /* 文件名为CALLSEL4.C 。 */ /* 功能: 将地址为f0h和f1h主存储器内容读出,看其是否大于300,若大于*/ /* 300,则把读出值减去300,再置入地址为f0h和f1h主存储器中去。*/ /* 若不大于 300,给出报警标志kc1=1。要写存储器,首先必须校验 */ /* 密码,密码校验通过后,方可写入。-This is the calling card SLE4442 assembler (SSLE4.ASM) of the C51 process,*//* file name CALLSEL4.C.*//* Function: to address f0h and f1h read out the contents of main memory to see whether or not greater than 300, if greater than*//* 300, while reading out the value of minus 300, and then placed in address and f0h f1h to the main memory.*//* If not greater than 300, given warning signs kc1 = 1. Write memory, we must first check*//* password, password validation through before they are allowed to write.
Platform: | Size: 1024 | Author: kangyaoming | Hits:

[JSP/JavaL1_vector

Description: 输入四个点,判断此四点是否可形成一个平行四边形。 程序中描述了一个抽象数据类型Vector2D,表示一个向量。具有(x,y)两个值。其本身具有减另一个向量(minus(Vector2D)),判断自身是否为零向量(iszero()),与另一个向量对应值y,x乘积之差(inner(Vector2D))。由于两个向量平行,则乘积之差x1*y2-x2*y1=0。点A,B,C,D四点组成平行四边形的条件是AB//CD,BC//DA且各个向量皆不为零向量。 首先声明四个向量。向量i获得值的方法是由getPoint(int i)获得。然后根据Vector2D重载后的toString()函数将各个向量输出查看。最后判断此四点是否可组成平行四边行。
Platform: | Size: 3072 | Author: malacca | Hits:

[VHDL-FPGA-Verilogdivide

Description: 除法器的设计本文所采用的除法原理是:对于八位无符号被除数A,先对A转换成高八位是0低八位是A的数C,在时钟脉冲的每个上升沿C 向左移动一位,最后一位补零,同时判断C的高八位是否大于除数B,如是则C的高八位减去B,同时进行移位操作,将C的第二位置1。否则,继续移位操作。经过八个周期后,所得到的C的高八位为余数,第八位为商。从图(1)可清楚地看出此除法器的工作原理。此除法器主要包括比较器、减法器、移位器、控制器等模块。-Divider design used in this paper, the principle of division is: For the eight unsigned dividend A, the first of A into the high-low 8 0 8 is the A number of C, in each clock rising edge to the left C Mobile One, and finally a zero, at the same time to determine whether C is greater than the high-8 divisor B, so is the high C 8 minus B, at the same time shift operation, the location will be C s second one. Otherwise, continue to shift operation. After eight cycles, received a high C for more than eight the number of eighth place for the business. From Figure (1) can clearly see that the divider works. This mainly includes divider comparators, subtraction, and shifter, controller modules.
Platform: | Size: 1024 | Author: lyy | Hits:

[assembly languagephone

Description: 在本次试验中需要注意基址寄存器BX的移动方法,对以字为单位的数组,BX的移动方式 是每移动一次加2或者减2 另外函数调用的过程中需要小心PUSH和pop的调用是否安全,例如在name_sort中pop CX的 时候没有先Push CX,导致了name_sort函数不可以调用 此程序使用比较高效的方法只是对号码单的首地址进行排序,为此开辟了一个地址数组 AdTable,类似C语言中的指针数组 在每个名字的前面存有每个名字的长度,有利于对名字进行比较,体现了空间换时间-In this trial need to pay attention to base address register BX mobile methods, to the word as a unit of the array, BX mobile is mobile once every 2 or minus 2 plus another function call the process requires careful PUSH and call it pop security, for example, in name_sort in a time when pop CX without first Push CX, led name_sort function can not call this procedure the use of efficient methods of comparison only the first address of a single number to sort this opened up an address array AdTable, similar to C Language pointer array in front of each name there is the length of each name is beneficial to compare the name reflects the space for time
Platform: | Size: 1024 | Author: 朱旭浩 | Hits:

[Game Engine200801e

Description: 最新仙镜传说服务器C语言源码 Retouch about problem of increase in quantity at the CART, when enter the an minus quantity in the CLIENT. Retouch about problem of not recovery,use POTIONPITCHER skill.-Sally legends mirror the latest server C language source Retouch about problem of increase in quantity at the CART, when enter the an minus quantity in the CLIENT.Retouch about problem of not recovery, use POTIONPITCHER skill.
Platform: | Size: 1179648 | Author: dingky | Hits:

[CSharptxtMoney

Description: C# 实现将数字文本转换为 中文繁体大写。。支持到分和负号-C# Achieve digital text is converted to Traditional Chinese capital. . Support to the points and minus sign
Platform: | Size: 37888 | Author: Dark.L | Hits:

[Windows Developencryption

Description: The program takes 3 inputs: 1. A letter of the alphabet that will remain unencoded (e.g. "J") 2. A 5-letter keyword (e.g. "BREAK") 3. A message to be encrypted (e.g. "COMPUTERSCIENCE"). You may assume that it does not contain any spaces or punctuation. To form the code, first create a 5x5 matrix in which the first row is your keyword and the other elements are the remaining letters of the alphabet (minus the unencoded letter): B R E A K C D F G H I L M N O P Q S T U V W X Y Z -Encryption code
Platform: | Size: 1024 | Author: 王梓 | Hits:
« 1 2 3 4 5 6 78 9 10 »

CodeBus www.codebus.net