自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 Q-M(Quine-McCluskey)法化简布尔表达式

首先,对于一个布尔表达式,肯定可以用布尔代数里的那一系列定理和定律进行化简。但是,我想除非布尔表达式的项非常少且可化简项显而易见,否则应该没人会去用那一套方法。就算你能化简,你也不一定能保证化简结果是最简的。化简布尔表达式,首先想到的应该是卡诺图。用卡诺图的操作方法非常简单,概括起来就是两字:画圈。而且,不只是画圈,还是画各种圈。对于3~4个变量组成的布尔表达式,运用卡诺图可以很快地化简。但是,当输入变量一多,光是构造一张卡诺图就很麻烦(对于10个变量,卡诺图就有210=10242^{10}=102421

2020-11-27 18:14:14 12550 3

原创 远程桌面无法启动MATLAB的解决方案

Version:MATLAB2019a由于 matlab使用了 FLEXlm进行 liscense管理,而 FLEXlm不支持从远程桌面访问,会报以下错误License checkout failed.License Manager Error -103MATLAB cannot be started through Terminal Services.…解决方案进入MATLAB安装目录的\licenses目录下打开license文件,将其中的SIGN=全部替换为TS_OK SIGN=,这样就

2020-11-01 17:34:39 1299 1

原创 FLex与Bison实现简易计算器

计算器主要实现了整数的加、减、乘、除、括号以及绝对值运算。其中,绝对值符号用|表示。FLex词法分析calculator.l%{ #include "calculator.tab.h"%}%option noyywrap%%"+" { return ADD; }"-" { return SUB; }"*" { return MUL; }"/" { return DIV; }"|" { return ABS; }"(" { return OP; }")"

2020-10-29 16:17:51 1528

原创 win10安装gcc编译器

MingW64下载地址:https://sourceforge.net/projects/mingw-w64/?source=typ_redirect安装好后,将安装目录下的bin目录添加到环境变量即可使用gcc。

2020-10-29 15:59:47 1003

原创 win10安装Bison语法分析器

Flex下载地址:http://gnuwin32.sourceforge.net/packages/bison.htm点击Setup下载Bison,下载完成后安装即可,注意记住Bison的安装路径。配置环境变量右击“此电脑”,选择“属性”->“高级设置”,在系统变量中将Bison安装路径下的bin目录加入Path中。输入组合键“win+R”,输入“cmd”打开命令终端,输入bison -V查看bison是否安装成功。至此,Bison安装完成,可以在命令行使用bison进行语法分析了。

2020-10-25 20:57:08 1854 1

原创 win10安装Flex词法分析器

Flex下载地址:http://gnuwin32.sourceforge.net/packages/flex.htm点击Setup下载Flex,下载完成后安装即可,注意记住Flex的安装路径。配置环境变量右击“此电脑”,选择“属性”->“高级设置”,在系统变量中将Flex安装路径下的bin目录加入Path中。至此,Flex安装完成,可以在命令行使用flex直接编译Lex源文件了。...

2020-10-25 16:37:48 1519

原创 输入两个链表,寻找其公共结点

/* find_first_common_node.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundati

2020-10-14 16:56:04 69

原创 判断一个整数序列是否是另一个整数序列的出栈顺序

/* is_pop_order.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either

2020-10-14 16:54:20 113

原创 输入一个链表,反转链表后,输出新链表的表头

/* reverse_link_list.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; e

2020-10-14 16:52:06 78

原创 用两个栈来实现一个队列,完成队列的Push和Pop操作

/* queue.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either versio

2020-10-14 16:50:03 236

原创 队列的顺序存储结构实现

/* sq_queue.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either ver

2020-10-14 15:06:05 142

原创 栈的顺序存储结构实现

#include <stdio.h>#define MAX_STACK_SIZE (100)typedef int ELEM_TYPE;typedef struct _sq_stack{ ELEM_TYPE data[MAX_STACK_SIZE]; int top;} sq_stack;void sq_stack_init(sq_stack* stack){ stack->top = -1; return ;}int inline

2020-10-14 14:50:50 98

原创 线性表的顺序存储结构实现

线性表的顺序存储结构实现#include <stdio.h>#define SQ_LIST_MAX_SIZE (100)typedef int ELEM_TYPE;typedef struct _sq_list{ ELEM_TYPE data[SQ_LIST_MAX_SIZE ]; int len;} sq_list;void clear_sq_list(sq_list list){ list.len = 0;}int sq_list_get_elem(sq_

2020-10-12 23:45:34 134

原创 线性表的单链式存储结构实现

线性表C语言实现/* The industrial I/O core * * Copyright (c) 2020 Leizhen@xmu.ese * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software

2020-10-10 08:56:49 99

FLex Bison MingW64

windows下的Flex、Bison以及gcc编译器,配置完成后可以在windows下通过命令终端进行词法分析和语法分析,并且可以使用gcc进行编译。其中,MinGW64为免安装版,直接解压后放在一个目录下,然后配置好环境变量即可使用。

2020-10-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除