- 博客(1)
- 资源 (4)
- 收藏
- 关注
原创 Leetcode无重复字符的最长子串 C语言
题目 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: “abcabcbb” 输出: 3 解释: 因为无重复字符的最长子串是 “abc”,所以其长度为 3。 示例 2: 输入: “bbbbb” 输出: 1 解释: 因为无重复字符的最长子串是 “b”,所以其长度为 1。 示例 3: 输入: “pwwkew” 输出: 3 解释: 因为无重复字符的最长子串是 “wke...
2020-05-03 00:57:53
543
pl0语法分析.docx
课程实验报告C语言版本
1.PL/0 源程序
// PL0.txt
const a=10;
var b,c;
procedure p;
begin
c:=b+a
end;
begin
read(b);
while b#0 do
begin
call p;write(2*c);read(b)
end
end.
2.词法分析结果(PL/0 单词流文件)
//outputfile.txt
constsym,
ident, a
eql,
number, 10
semicolon,
varsym,
ident, b
comma,
ident, c
semicolon,
proceduresym,
ident, p
semicolon,
beginsym,
ident, c
becomes,
ident, b
plus,
ident, a
endsym,
semicolon,
beginsym,
readsym,
lparen,
ident, b
rparen,
semicolon,
whilesym,
ident, b
neq,
number, 0
dosym,
beginsym,
callsym,
ident, p
semicolon,
writesym,
lparen,
number, 2
times,
ident, c
rparen,
semicolon,
readsym,
lparen,
ident, b
rparen,
endsym,
endsym,
2020-04-07
cache仿真程序.cpp
根据直接映射的cache工作原理,针对一个8行的cache工作过程进行仿真,每行(块)为一个字,1字4字节,需要读取的内存地址在trace.txt文件中列出。请编写程序,实现8行的cache工作过程进行仿真,可显示每个内存地址,及是否命中;命中率。
2019-05-30
输出存储地址.cpp
x为float型,y为in型,s为short,请用C语言程序实现:可输入对应的变量值,输出其在内存中存储的每个字节的内容。比如,x=-12.5,输出对应存储4字节内容及每个字节对应的地址。
2019-05-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人