//ex1.cpp #include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } //ex2.cpp #i ...
分类:
其他好文 时间:
2020-11-02 10:39:02
阅读次数:
18
任务1 //ex1.cpp #include<stdio.h> int main(){ int a=5, b=7, c=100, d, e, f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d, e=%d, f=%d",d,e,f); return 0; } d=5 ...
分类:
其他好文 时间:
2020-11-01 22:08:49
阅读次数:
15
#include <stdio.h> #include <stdlib.h> //数组的应用:顺序表【线性表的一种存储方式】 struct Arr { int * pBase; //保存首地址 int len; //数组的总长度 int cet; //cet: current efficient(当 ...
分类:
编程语言 时间:
2020-11-01 22:05:49
阅读次数:
23
##静态库的制作和使用 命名规则:libtest**.a**(加粗的地方是格式不可以更改) lib xxx -库的名字(自己取) .a 制作步骤 源代码:.c/.cpp 将.c文件生成.o gcc a.c b.c -c 将.o打包 ar rcs 静态库名字 原材料 ar rcs libtest.a ...
分类:
其他好文 时间:
2020-11-01 21:59:26
阅读次数:
14
1.信息 文本文件:只由ASCII字符构成的文件 二进制文件:所有其他文件 区分不同数据对象的唯一方法:根据字节序列的上下文 2.编译过程 从源文件到可执行目标文件,执行: gcc -o hello hello.c 分为四个阶段: 预处理阶段:预处理器(cpp)修改原来的C程序,得到hello.i文 ...
分类:
其他好文 时间:
2020-11-01 09:36:47
阅读次数:
20
Segment Tree Beats $Q1.$给定长度为$n$的序列$A$,支持以下操作:1、区间取$\min$;2、区间查询最大值;3、区间求和。 const int N = 1000005; const int inf = 1<<30; int n, m, a[N]; #define lc ( ...
分类:
其他好文 时间:
2020-10-31 01:22:28
阅读次数:
19
以管理员身份,打开notepad++ --》设置(setting) --》首选项(preference) --》文件关联(file association) --》customize: 需要添加的后缀名: .log,.txt,.ini,.h,.c,.cpp,.java,.inc,.cs,.html, ...
分类:
其他好文 时间:
2020-10-30 11:36:48
阅读次数:
24
网络上查到有两种将Json库加入到VS中的方法,我只试了一种,将Jsoncpp库源文件编译成.lib文件加入到VS中,所以下面也是记录的这种方式 1. 下载Jsoncpp库包 网址:https://github.com/open-source-parsers/jsoncpp 我下载的是svn-rel ...
分类:
Web程序 时间:
2020-10-26 11:49:29
阅读次数:
49
#剑指 Offer 47. 礼物的最大价值 解题思路 因为对于一个点,只可能是从上方或左方累加过来,那么选择值最大的那个方向累加即可。 转移方程: f[i][j]+=max(f[i-1][j],f[i][j-1]); 在原矩阵上操作,最后返回最右下角的数即可。 代码 class Solution { ...
分类:
其他好文 时间:
2020-10-26 11:22:21
阅读次数:
20
1、更基础方法 https://www.cnblogs.com/wangyuxue/p/11218113.html 2、 安装node-gyp https://www.cnblogs.com/wangyuxue/p/11218113.html ...
分类:
其他好文 时间:
2020-10-26 10:56:04
阅读次数:
19