搜索资源列表
cc
- 随机产生若干个0~100的随机数,从键盘输入待输入的随机数的个数,并求和、平均值、最大值、最小值、并统计小于60的随机数的个数,如果结果为小数,要求小数点后面保留两位有效数字。-Randomly generating a plurality of random numbers of 0 to 100, to be entered from the keyboard to enter the number of the random number, and sum, average, maximu
selectTextFpl
- 根据多段线选择多段线内的文本 求和 SelectBypolyline的用法-sum the TEXTes what select inside polyline by choosed polyline
cifafenxi
- 输入:所给文法的源程序字符串 输出:二元组(syn, token或sum)构成的序列。 syn为单词种别码; token为存放的单词自身字符串; sum为整形常数。 例如:对源程序begin x:=9 if x>0 then x:=2*x+1/3 end# 经词法分析后输出如下序列:(1,begin)(10,’x’) (18,:=) (11,9) (26, ) (2,if)-failed to translate
Sum
- 计算数组元素之和,利用三种不同的方法处理数组边界。-Calculating the sum of the array elements, using three different approaches array bounds.
cPP-Two-dimensional-array
- 这个内容都是有关数组的,有求最大值,求和,基础的,新手们可以参考。-This content is related to the array, there are seeking maximum sum basis, novices can refer.
genere-masivu
- This program generate a masive and sum row
Matrix-Operations
- Matrix Operations These programs are useful for people beginning to learn MATLAB, and has basic assignment solutions of tasks like creating a reverse diagonal matrix, processing data of a matrix ( like calculating the sum of perimeter elements) and
词法分析程序
- 词法分析 输入:所给文法的源程序字符串。 输出:二元组(syn,token或sum)构成的序列。(lexical analysis Input: the source code string for the given grammar. Output: a sequence consisting of two tuples (syn, token, or sum).)
编译原理词法分析器
- 2.1 待分析的简单的词法 (1)关键字: begin if then while do end 所有的关键字都是小写。 (2)运算符和界符 : = + - * / < <= <> > >= = ; ( ) # (3)其他单词是标识符(ID)和整型常数(SUM),通过以下正规式定义: ID = letter (letter | digit)* NUM = digit digit* (4)空格有空白、制表符