上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: Parser (语义分析器) 1. 概述 Parser是编译器front-end的第二步,Parser将Scanner识别出的词语按照语义进行分类,并将词语构建成源编程语言的语法模型。 “ The parser derives a syntactic structure for the progra 阅读全文
posted @ 2020-09-28 19:49 Asp1rant 阅读(375) 评论(0) 推荐(0)
摘要: 参考自: https://www.runoob.com/regexp/regexp-tutorial.html https://www.runoob.com/python/python-reg-expressions.html 在线测试RE网站: https://regexr.com/ https: 阅读全文
posted @ 2020-09-23 17:12 Asp1rant 阅读(825) 评论(0) 推荐(0)
摘要: Scanner扫描器(又称 词法分析器) 参考:https://blog.csdn.net/errvv/article/details/50605332?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first 阅读全文
posted @ 2020-09-21 20:21 Asp1rant 阅读(190) 评论(0) 推荐(0)
摘要: 转载地址:https://zhuanlan.zhihu.com/p/44185847 如果没有 RSA 算法,现在的网络世界毫无安全可言,也不可能有现在的网上交易。上一篇文章 ssh 协议为什么安全 中的 ssh 协议也是基于 RSA 加密算法才能确保通讯是加密的,可靠的。 1976年以前,所有的加 阅读全文
posted @ 2020-09-21 14:48 Asp1rant 阅读(220) 评论(0) 推荐(0)
摘要: 现代编译器的结构: 上图中,IR: Intermediate Representations:原书的解释:A compiler uses some set of data structures to represent the code that it processes 源代码转换到目标程序,在编 阅读全文
posted @ 2020-09-18 20:26 Asp1rant 阅读(179) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/T0mato_/article/details/53160772 相关概念解释: AES: 设AES加密函数为E,则 C = E(K, P),其中P为明文,K为密钥,C为密文。也就是说,把明文P和密钥K作为加密函数的参数输入,则加密函数E会输出密文C 阅读全文
posted @ 2020-09-18 15:42 Asp1rant 阅读(8662) 评论(3) 推荐(0)
摘要: 参考自:https://www.cnblogs.com/jimodetiantang/p/9016826.html 1.概述 Lambda是c++11中引入的特性,为创建函数提供一种新的方式,用于定义和创建匿名的函数,以简化编程工作。 关于Lambda需要知道: Lambda 函数可以引用在它之外声 阅读全文
posted @ 2020-07-02 21:24 Asp1rant 阅读(249) 评论(0) 推荐(0)
摘要: 6.1 使用char[]时,保证长度不要超过上限 1. 使用cin时,用string接收输入值以替代char[] 2. 使用string接受char[]时,将char[]长度赋值给string的第二参数 6.2 堤防用空指针创建string 1. std::getenv会可能返回空的char*,不要 阅读全文
posted @ 2020-06-01 19:31 Asp1rant 阅读(163) 评论(0) 推荐(0)
摘要: 第五章 容器 5-1 确保容器索引在范围内 1. 用std::size_t代替int 2. 用模板函数接受参数,进行参数类型转换 3. 使用std::vector时,用at代替[]索引 4. 使用迭代器注意不要超限 5-2 用容器的有效引用,指针和迭代器 书中此章含有表格,详见 P164 5-3 用 阅读全文
posted @ 2020-04-29 19:14 Asp1rant 阅读(158) 评论(0) 推荐(0)
摘要: 4.1 使用枚举类型的注意事项 1.将int类型转换成枚举类型之前,需要检查int数值是否超出枚举范围 2.用enum class替代enum (Mentionded in Modern Effective C++) 3.用enum EnumType : int 定义枚举类型 阅读全文
posted @ 2020-04-17 16:34 Asp1rant 阅读(117) 评论(0) 推荐(0)
摘要: 暂时发现解决安装typescript有效 npm config set proxy null npm config set registry https://registry.npm.taobao.org/ npm config set disturl https://npm.taobao.org/ 阅读全文
posted @ 2020-04-14 22:47 Asp1rant 阅读(534) 评论(0) 推荐(0)
摘要: std::future std::future期待一个返回,从一个异步调用的角度来说,future更像是执行函数的返回值,C++标准库使用std::future为一次性事件建模,如果一个事件需要等待特定的一次性事件,那么这线程可以获取一个future对象来代表这个事件。异步调用往往不知道何时返回,但 阅读全文
posted @ 2020-04-09 22:41 Asp1rant 阅读(202) 评论(0) 推荐(0)
摘要: 本文介绍如何通过npm进行web工程的部署 一:安装npm 安装npm最简单的方法是通过nodejs官网下载最新的release,安装时会附带安装npm 在mac和linux上还可以通过brew和apt-get下载安装,网络原因本人没有成功 nodejs官方网站:http://www.nodejs. 阅读全文
posted @ 2020-04-08 18:02 Asp1rant 阅读(715) 评论(0) 推荐(0)
摘要: 3-1不要对边缘效应的调用顺序产生依赖 Side effect: Modifying an object (如 ++,--) Calling a library IO function Accessing a volatile-qualified value 避免在同一行代码中调用多次变量且含++等 阅读全文
posted @ 2020-04-07 17:17 Asp1rant 阅读(187) 评论(0) 推荐(0)
摘要: sei cert c++ 提供了一些安全c++编程的tips, 本文参照2016标准 2-1 弃用C语言的不定参函数 1.用template代替C语言的不定参函数 2.用std::enable_if处理变参长度为0的情况 2-2 下划线命名规则 1.不用下划线作头文件的宏 2.用户自定义operat 阅读全文
posted @ 2020-03-31 19:40 Asp1rant 阅读(318) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页