- 博客(9)
- 收藏
- 关注
原创 win10下使用ISE软件时PlanAhead闪退问题
PlanAhead兼容性问题解决方案: 最近在使用ISE软件做仿真电路时在用户约束步骤时出现闪退,之前用过win7系统下的ISE软件没有出现这类错误,说明这应该属于win10兼容性问题。查阅了一下就能很好解决,参考文章在Xilinx的ISE14.7和PlanAhead与win10系统的兼容性问题解决方案 解决方案如下: 打开(你下载PlanHead的文件位置)如C:\Xilinx\14.7\ISE_DS\PlanAhead\bin,并将rdiArgs.bat重命名为rdiArgs.bat.orig
2022-05-16 00:23:03
3972
11
原创 Android Studio报错解决
Android Studio在运行的时候很容易报错导致进度停滞不前 以下问题均为在项目代码没有错误的时候的运行报错 1.The specified Gradle distribution 'https://services.gradle.org/distributions/gradle-6.5-bin.zip' does not exist. 2.> NDK at E:\SDK\ndk-bundle did not have a source.properties file 第一个解决方
2022-03-29 23:48:01
5156
原创 通过题目加深栈的理解
题目描述:给定一个只包括 ‘(’,’)’,’{’,’}’,’[’,’]’ 的字符串 s ,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。 左括号必须以正确的顺序闭合。 示例 1:输入:s = "()" 输出:true 示例 1:输入:s = "()[]{}" 输出:true 示例 1:输入:s = "(]" 输出:false 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/
2022-03-08 21:57:43
254
原创 数据结构Mooc第三章作业
一、写出下列表达式的后缀形式。 (1) (a+b)/(c+d) (2) b^2-4ac (3) ac-b/c^2 (4) (a+b)c+d/(e+f) (5) (a+b)(cd+e)-a*c (1)ab+cd+/ (2)b2^4ac- (3)ac*bc2^/- (4)ab+c*def+/+ (5)ab+cd*e+*ac *- 二、设A, B, C, D, E五个元素依次进栈(允许元素进栈后立即出栈),问能否得到下列元素出栈序列。若能得到,则给出相应的push和pop操作序列;
2021-09-29 18:36:20
2096
转载 逆波兰计算器(中缀表达式转换后缀表达式)
原理:从左到右遍历表达式的每个数字和符号,遇到是数字就进栈,遇到是符号,就将处于栈顶两个数字出栈,进行运算,运算结果进栈,—直到最终获得结果。 举例:9 3 1-3*+ 10 2/+ #include <iostream> #include <stack> #include <vector> #include <deque> using namespace std; char str[100][20]; int len = 0; //记录输入
2021-09-28 20:30:17
847
原创 c++静态数据成员使用
在相关的要求下完成代码 #include<iostream> using namespace std; class Student { private: int age; string name; public: static int count; public: Student(int m, string n); Student(); ~Student(); void Print() const; }; int Student::count = 0; Student::Stude
2021-05-05 20:21:27
120
原创 一维数组的转置
一个可能比较常见的解法。 #include<stdio.h> int main() { int a[200]; int n, i, temp; printf("input a number:"); scanf("%d", &n); for (i = 0;i < n;i++) { scanf("%d", &a[i]); } for (i = 0;i < n / 2;i++) { temp = a[i]; a[i] = a[n - 1 - i
2020-12-08 19:09:01
2911
3
原创 有关数组的函数的七种常见应用
数组的输入,输出,最大值,最小值,查询,均值和排序。注意返回值类型。 #include<stdio.h> #define N 10 void input(int a[], int n); void output(int a[], int n); int maxnum(int a[], int n); int minnum(int a[], int n); int find(int a[], int n,int x); double ave(int a[], int n); void sort(i
2020-11-30 22:04:03
314
原创 空心菱形输出
一道比较简单的题目,但刚开始学习时确实容易卡壳。 #include <stdio.h> int main() { int i, j, k; for (i = 1;i <= 4;i++) { for (j = 4 - i;j > 0;j--) printf(" "); for (k = 1;k <= 2 * i - 1;k++) printf("* ");
2020-11-30 21:57:49
231
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅