搜索资源列表
floyd
- 简单的floyd运用 第一行输入一个整数C。C是测试的情况(0< C <=30).第二行一个正整数N( 0< N <=100),表示道路的总数.紧接N行,每一行包含两个字符串, Si,,Ti,和一个整数Di,代表从Si到Ti的距离(0<= Di <=150)。最后一行有两个字符串,S 和 T,你得找出从S 到 T的最短的距离。地名是不超过120个小写字符的串(从‘a’到‘z’)。假设这里最多有100条直接连通两个地方的路。 Outpu
Lex
- 小型的Lex编译器,能从input.txt识别简单的C++语句,并将分析结果存于output.txt中
2
- 设计并实现C语言的语分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法G产生: EE+T|E-T|T TT*F|T/F|F Fid|(E)|num 实验要求:在对输入表示进行分析的过程中,输出所采用的产生式。-Design and implement C language, language analysis program to realize the arithmetic expression parsing. Requirements of a
c-viterbi
- 这是(2,1,7)viterbi编码和译码的c语言代码 译码中是用基二算法实现的,运行时首先要在c盘中建立一个输入文件和一个输出文件。-This is the [2,1,7] viterbi encoding and decoding of the c language code decoding is to use the base implementation of the second algorithm, run-time we must first set up in c aft
LexicalAnalysis
- 用C++编写的一个简单C语言词法分析器,把需要分析的内容保存在C:\input.txt,分 析完毕好保存在C:\output.txt-Using C++ to prepare a simple C language lexical analyzer, the need to analyze the contents stored in C: \ input.txt, finished the analysis of well preserved in the C: \ output.txt
student
- 这是大一老师让自己做的小程序,基本涵盖了C++书中的基本知识点,数组,输入输出文件流,排序,继承-This is the first year to allow teachers to do their own little program, basic C++ covers the basic knowledge of the book, the array of input and output file stream, sorting, inheritance, etc.
cifafenciqi
- 用c++手工编程实现才c-语法分析器,能够读取存储在input.txt中的c-源程序,并将其刺法分析的结果即Token序列输出到out.txt中,以便检查此法分析的正确性-Using c++ manual programming only c-grammar parser that can read in the input.txt is stored in the c-source code, and analysis of the results of thorns that the Tok
while
- 否符合while语句的文法,或者能不能通过文法的开始符号推导出该语句。 (2) 该程序应该包括词法分析器,能对输入的语句进行词法分析,然后再对输出结果。词法分析器应能识别关键字,标示符,常量,操作符等。 (3) 该程序的语法分析器能对输入的语法进行分析,判断输入语句能否满足while循环语句的文法。通过简单优先的方法对语句进行分析,看能否能归约到文法的开始符号。 (4) 该程序的语义分析器就是对分析结果进行输出,要求输出结果是三地址形式的。-Compliance with the s
LR
- 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to de
classical_c_100_examples
- 包括100个经典的C程序代码,通过100个编程例子,将C语言中常用的输入输出,条件语句,循环语句,指针,结构体,等几块融会贯通,是学习C的基础资料,帮助大家更上一层楼。-Including 100 classic C program code, through the 100 programming examples will be used in C language input and output, conditional statements, loop, pointer, struct
Matrixmultiplication
- 矩阵乘法并行算法的MPI源程序,以文本文件形式输入输出-MPI parallel algorithm source code of Matrix multiplication,input and output in the form of txt files
C
- 定义C语言或其子集的单词并给出编号,根据给定的语言子集构造词法分析器,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常量、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值(遇到错误时可显示“Error”,然后跳过错误部分继续显示),要求输出以文件形式存放的Token串。-The definition of C language or a subset of the word and give numbers, according to a subset
C
- 1、1+1/2+1/3+……+1/n 2、键盘输入任何数字,求其阶乘 3、数组输入和输出 4、求数组的max和min -1,1+1/2+1/3+ ... ...+1/n 2, keyboard input any number, find its factorial 3, an array of input and output 4, seeking an array of max and min
C
- 有10个学生,每个学生的数据包括学号、姓名、3门课的成绩,从键盘输入10个学生数据,求出每个学生3门课的平均成绩,并输出最高分的学生的数据(包括学号、姓名、3门课的成绩、平均成绩)。 输入4个整数,按由小到大的顺序输出,使用指针进行处理。 请说明以下程序段存在的问题,并改正。 int a,*p scanf(“ d”,p) 通过计算机并口向数模转换器发送数据,实现D/A转换。 将两台计算机的COM口相连,一个作为接收端,另一个作为发送端,编程实现两台计算机之间的简单通信
C
- 上传几个C语言小程序,供新手入门使用,包含输入输出及简单算法-To uploading several small C language program for beginners to use, contains the input and output and a simple algorithm
C-syntactic-analyzer-
- 利用C语言写的一个词法分析器,文件输入输出,且生成关键字表、运算符表、分界符表-A lexical analyzer written in C language, file input and output, and generate keyword table, the operator table delimiter Table
The-decimal-input-and-output
- 各种简单的c++题目及代码文件,各种简单的c++题目及代码文件。-All kinds of simple c++ title and code files
c
- 1.输入一行文字,找出其中大写字母、小写字母、数字字符、空格以及其他字符各多少。。要求编写一个函数实现统计功能,在主函数中输入一行文字、调用统计函数并输出统计结果。 2.写一个函数实现两个字符串连接,在主函数中输入和输出字符串,要求用字符指针变量作行参和实参-1. Enter the line of text to find out where the uppercase letters, lowercase letters, numbers, characters, spaces, and
C经典程序
- 最基础的C语言程序,覆盖输入输出操作,数组,函数,指针,文件等,很典型。(The most basic C language program, covering the input and output operations, arrays, functions, pointers, documents, etc., is very typical.)
Tripl
- C语言实现三元数组,包括初始化,删除数组,输入输出数据,判断升序降序等功能(C language to achieve three yuan array, including initialization, delete array, input and output data, to determine ascending descending order and other functions)