![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
single 君
求大佬carry
展开
-
《软件架构与设计模式》思维导图
原创 2022-06-08 20:26:52 · 332 阅读 · 0 评论 -
花旗智能系统
衍生产品对冲风险(大宗商品)汇率就是不同币换(还行,来为我的截屏点几个赞吧(doge原创 2022-05-16 21:49:57 · 145 阅读 · 0 评论 -
《人机交互设计》考前速刷
可用性动机:生命、商用、家庭、探索、社会普遍可用性:身体、场所差异、认知感知能力差异、个性、文化与国际、残疾、老年、儿童、软硬件可用性目标:有效性、效率、满意度可用性度量:学习时间、性能速度、用户出错率、记忆保持时间、主观满意度。用户体验:让用户全程参与产品研发过程原则:1,确定用户技能水平(新手、专家、间歇)2.识别任务3.选择交互风格(直接操纵、表格填写、菜单选择、命令语言、自然语言)4.界面设计8大黄金规则(争取保持一致性、满足普遍可用性、提供信息反馈、设计对话框以产生结束信息、允许原创 2022-04-29 02:03:43 · 549 阅读 · 2 评论 -
c++三种直线绘制算法
#include <graphics.h> //包含EGE的头文件void DDAline(int x1, int y1, int x2, int y2, int color) { int x; float dx, dy, y, k; dx = x2 - x1, dy = y2 - y1; if (dx == 0) { for (y = min(y1,y2); y <max(y1, y2); y++) { putpixel(x1, y, color);原创 2021-09-23 23:41:21 · 2277 阅读 · 0 评论 -
‘strtok‘: This function or variable may be unsafe. Consider using strtok_s instead.
在首行加上即可。#define _CRT_SECURE_NO_DEPRECATE原创 2021-04-04 22:05:34 · 511 阅读 · 0 评论 -
os.path常用函数
原创 2020-04-09 18:45:37 · 141 阅读 · 0 评论 -
关于任意个数数据处理的两个方法
1.读入任意个数数据,我是以常见的windows键盘输入终止符Ctrl+z结尾,此时cin=0://以键盘输入Ctrl+z结尾,为输入(文件)结束 int i = 0; while (cin >> arr[i]) i++;2.暴力循环+初始化数组#include<iostream>#define N 200using namespace std;templa...原创 2020-02-24 22:00:42 · 150 阅读 · 0 评论 -
双栈用法
class Solution {public: bool checkValidString(string s) { stack<int> left,star; for(int i=0;i<s.size();i++){ if(s[i]=='(') left.push(i); else if(s[i]==...原创 2020-02-15 18:10:21 · 438 阅读 · 0 评论 -
栈的压入,弹出序列
vector 容器序列stack 栈算法课老师没讲代码,然后leetcode上更加骚的东西bool validateStackSequences(vector<int>& pushV, vector<int>& popV) { if(popV.empty() && pushV.empty()) re...原创 2020-02-12 21:48:32 · 77 阅读 · 0 评论 -
二叉树的深度
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */int maxdeep;void Maxdeep(struct TreeNode*root,int...原创 2020-02-12 18:56:35 · 80 阅读 · 0 评论 -
单调栈入门题(站队问题)
#include<stdio.h>#include<iostream>#include<string.h>#include<algorithm>using namespace std;const int N = 1e5 + 5;const int inf = 1e9;int s[N], top;int a[N], ans[N];i...原创 2020-02-11 20:12:25 · 138 阅读 · 0 评论 -
栈基础运用(括号匹配)(acm超基础)
那啥,有了上一条博客,这里是针对括号匹配升级版的运用大括号中括号小括号的正确匹配用栈就比较简单C++代码#include<stdio.h>#include<string.h>#include<iostream>#include<algorithm>using namespace std;const int n=1e6+5;char...原创 2020-02-10 22:12:39 · 98 阅读 · 1 评论 -
栈基础代码
int s[n],top;void push(int x){top++;s[top]=x;//s[++top]=x;}int pop(){if(top==0) return -1;int t=s[top--];return t;}原创 2020-02-10 19:59:27 · 188 阅读 · 0 评论 -
总结python turtle库绘制七晶管日期
import turtledef drawline(draw): turtle.pendown() if draw else turtle.penup() turtle.fd(40) turtle.right(90)def drawdigit(digit): drawline(True)if digit in[2,3,4,5,6,8,9]else drawline...原创 2020-02-04 12:08:00 · 288 阅读 · 0 评论 -
leetcode历史时
卑微C尽管排倒数但爷终于写出一道中等题了hhh原创 2020-01-21 22:39:39 · 201 阅读 · 0 评论 -
leetcode用户分组C
网上摘的补充知识:C中malloc函数malloc的全称是memory allocation,中文叫动态内存分配,当无法知道内存具体位置的时候,想要绑定真正的内存空间,就需要用到动态的分配内存。malloc 向系统申请分配指定size个字节的内存空间(连续的一块内存)。返回类型是 void* 类型。void* 表示未确定类型的指针。void 可以指向任何类型的数据,更明确的说是指申请内存空间...原创 2020-01-19 22:42:54 · 291 阅读 · 0 评论