﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-专职C++</title><link>http://www.cppblog.com/zdhsoft/</link><description>不能停止的脚步</description><language>zh-cn</language><lastBuildDate>Thu, 16 Apr 2026 12:02:34 GMT</lastBuildDate><pubDate>Thu, 16 Apr 2026 12:02:34 GMT</pubDate><ttl>60</ttl><item><title>[转贴]C++ 20 准备发布，C++ 23 提上议程</title><link>http://www.cppblog.com/zdhsoft/archive/2020/02/24/217154.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Mon, 24 Feb 2020 05:26:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2020/02/24/217154.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/217154.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2020/02/24/217154.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/217154.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/217154.html</trackback:ping><description><![CDATA[<p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">根据 Reddit C++ 版块上的信息，C++ 20 已经正式通过委员会草案，这意味着 C++ 20 可以准备发布。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><img height="263" src="https://oscimg.oschina.net/oscnet/up-201ca6bf0a828de00d31894ddd7ba9ec31f.png" width="700" style="box-sizing: border-box; border: 0px; margin: 0px auto; max-width: 80%; height: auto; vertical-align: middle; cursor: zoom-in;"  alt="" /></p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">&#8220;在近期 ISO C++ 委员会会议上，我们完成了 C++ 20 委员会草案，并投票决定将国际标准草案（DIS，Draft International Standard）发送出去，以进行最终批准和发布&#8221;，帖子介绍：&#8220;在程序上，DIS 可能会被拒绝，但是由于我们的程序和过程，这种情况极不可能发生。这意味着 C++ 20 已经完成，并将在几个月后发布该标准。&#8221;</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">C++ 20 是近十年来影响最大的一个版本，新的特性众多，包括：</p><ul style="box-sizing: inherit; margin: 0px 0px 20px; padding: 0px 0px 0px 20px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit; line-height: 1.875em; margin-top: 0px;">模组（Modules）</li><li style="box-sizing: inherit; line-height: 1.875em;">协程（Coroutines）</li><li style="box-sizing: inherit; line-height: 1.875em;">标准库 Concepts 的概念</li><li style="box-sizing: inherit; line-height: 1.875em;">范围（range）</li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">constexpr</code>支持：<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">new</code>/&nbsp;<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">delete</code>、<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">dynamic_cast</code>、<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">try</code>/&nbsp;<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">catch</code>、虚拟</li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">constexpr</code>&nbsp;向量和字符串</li><li style="box-sizing: inherit; line-height: 1.875em;">计时：日历、时区支持</li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::format</code></li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::span</code></li><li style="box-sizing: inherit; line-height: 1.875em; margin-bottom: 0px;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::jthread</code></li></ul><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">预计这些新特性将会对开发者及 C++ 生态产生不小影响，特别是像协程这种巨大的变化。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">同时，在此次会议期间，委员会还通过了 C++ 23 计划，其中包括优先考虑模块化标准库、对协程、执行程序和网络的库支持。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">更加具体的内容可以查看原帖：</p><p style="box-sizing: inherit; margin: 0px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><a href="https://www.reddit.com/r/cpp/comments/f47x4o/202002_prague_iso_c_committee_trip_report_c20_is/" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">https://www.reddit.com/r/cpp/comments/f47x4o/202002_prague_iso_c_committee_trip_report_c20_is</a></p><img src ="http://www.cppblog.com/zdhsoft/aggbug/217154.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2020-02-24 13:26 <a href="http://www.cppblog.com/zdhsoft/archive/2020/02/24/217154.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转贴]2019 年 C++ 的发展</title><link>http://www.cppblog.com/zdhsoft/archive/2020/01/11/217081.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Sat, 11 Jan 2020 02:50:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2020/01/11/217081.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/217081.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2020/01/11/217081.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/217081.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/217081.html</trackback:ping><description><![CDATA[<p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">原文地址：<span style="font-family: verdana, &quot;courier new&quot;; font-size: 14px;">https://www.oschina.net/news/112476/cpp-in-2019</span></p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">C++ 软件工程师&nbsp;<a href="https://www.bfilipek.com/p/about.html" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Bartek</a>&nbsp;发布博客，回顾了 C++ 2019 年的发展情况。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><img height="247" src="https://oscimg.oschina.net/oscnet/up-c15ef3c1d6aabee537a57e778c037089f56.png" width="700" style="box-sizing: border-box; border: 0px; margin: 0px auto; max-width: 80%; height: auto; vertical-align: middle; cursor: zoom-in;"  alt="" /></p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">Bartek 主要介绍了 2019 年 C++ 特性上的演进、在全球的会议重大进展、相关工具的改进，以及 C++20 新特性的期待，他总结成三大关注点：</p><ul style="box-sizing: inherit; margin: 0px 0px 20px; padding: 0px 0px 0px 20px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit; line-height: 1.875em; margin-top: 0px;">C++20 即将发布</li><li style="box-sizing: inherit; line-height: 1.875em;">工具，现在编写 C++ 代码更加容易</li><li style="box-sizing: inherit; line-height: 1.875em; margin-bottom: 0px;">C++ 在开发者中的稳定地位</li></ul><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">（需要注意的是，文章提出的只是 Bartek 的观点，并不代表整个 ISO C++ 委员会的观点。）</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">从下表可以看出来，在 2019 年，C++ 社区做了许多事情，像我们关注的新特性方面的进展也有不少，比如 Clang&nbsp;<a href="https://www.oschina.net/news/105330/llvm-8-0-0-released" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">8.0.0</a>、<a href="https://www.oschina.net/news/109997/llvm-9-0-released" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">9.0.0</a>&nbsp;发布、<a href="https://www.oschina.net/news/105629/vs2019-general-availability" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">VS 2019</a>&nbsp;发布与&nbsp;<a href="https://www.oschina.net/news/106414/gcc-9-1-released" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">GCC 9.1</a>&nbsp;发布等。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><img height="522" src="https://oscimg.oschina.net/oscnet/up-716f022528d28a5cd0e78b5b15486c27682.png" width="400" style="box-sizing: border-box; border: 0px; margin: 0px auto; max-width: 80%; height: auto; vertical-align: middle; cursor: zoom-in;"  alt="" /></p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">简单总结起来，从 Clang 5.0、GCC 8.0、Visual Studio 15.7 和 Intel C++ Compiler 19.0.1 开始，所有编译器都支持 C++ 语言特性。虽然&nbsp;C++&nbsp;标准库需要其它支持，特别是并行算法和文件系统之类的要点。<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::filesystem</code>需要使用到 GCC 8.1（或更高版本的 GCC 9.1）、Clang 3.9（或更高版本 7.0）和 Visual Studio 2017 15.7。并行算法更新最早在 Visual Studio 2017 15.7 中可用，但随着之后的更新，MSVC 团队添加了更多算法。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">关于 C++20 的讨论在今年占据主导地位，目前特性已经冻结，主要特性包括：</p><ul style="box-sizing: inherit; margin: 0px 0px 20px; padding: 0px 0px 0px 20px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit; line-height: 1.875em; margin-top: 0px;">模组</li><li style="box-sizing: inherit; line-height: 1.875em;">协程</li><li style="box-sizing: inherit; line-height: 1.875em;">标准库 Concepts 的概念</li><li style="box-sizing: inherit; line-height: 1.875em;">范围</li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">constexpr</code>支持：<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">new</code>/&nbsp;<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">delete</code>，<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">dynamic_cast</code>，<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">try</code>/&nbsp;<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">catch</code>，虚拟</li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">constexpr</code>&nbsp;向量和字符串</li><li style="box-sizing: inherit; line-height: 1.875em;">计时：日历、时区支持</li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::format</code></li><li style="box-sizing: inherit; line-height: 1.875em;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::span</code></li><li style="box-sizing: inherit; line-height: 1.875em; margin-bottom: 0px;"><code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">std::jthread</code></li></ul><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">目前流行的编译器已经实现了许多 C++20 特性。Bartek 列了一个 C++20 新特性的小表：</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><img height="269" src="https://oscimg.oschina.net/oscnet/up-e4226347eeb58c27a614c3612ec36529947.png" width="500" style="box-sizing: border-box; border: 0px; margin: 0px auto; max-width: 80%; height: auto; vertical-align: middle; cursor: zoom-in;"  alt="" /></p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">工具方面，首先 Visual Studio 对 C++ 提供了众多新的支持，包括：</p><ul style="box-sizing: inherit; margin: 0px 0px 20px; padding: 0px 0px 0px 20px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit; line-height: 1.875em; margin-top: 0px;">使用 Visual Studio IntelliCode 的 AI 辅助代码补全</li><li style="box-sizing: inherit; line-height: 1.875em;">C++ MSBuild 和 CMake 项目中对 Clang 和 MSVC 的 Clang-Tidy 的支持</li><li style="box-sizing: inherit; line-height: 1.875em;">AddressSanitizer 支持 Windows 上使用 MSVC 编译的项目</li><li style="box-sizing: inherit; line-height: 1.875em;">与 CMake 更好地集成</li><li style="box-sizing: inherit; line-height: 1.875em;">Concepts&nbsp;在 16.3 中可用</li><li style="box-sizing: inherit; line-height: 1.875em;">全面的<code style="box-sizing: inherit; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; font-size: 13px; margin: 0px 3px; padding: 3px 4px; border: none; border-radius: 4px; background: #f6f6f6;">to_chars()</code>支持，满足了 C++ 17 的要求</li><li style="box-sizing: inherit; line-height: 1.875em; margin-bottom: 0px;">提供了一个名为 C++ Build Insights 的新工具集合。</li></ul><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">Clang/LLVM 提供了许多强大的实用程序，比如：</p><ul style="box-sizing: inherit; margin: 0px 0px 20px; padding: 0px 0px 0px 20px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit; line-height: 1.875em; margin-top: 0px;">Clang Tidy</li><li style="box-sizing: inherit; line-height: 1.875em;">Clang-Include-Fixer</li><li style="box-sizing: inherit; line-height: 1.875em;"><a href="https://clang.llvm.org/docs/AddressSanitizer.html" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">AddressSanitizer</a></li><li style="box-sizing: inherit; line-height: 1.875em; margin-bottom: 0px;"><a href="https://clang.llvm.org/docs/MemorySanitizer.html" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">MemorySanitizer</a></li></ul><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">代码分析器 CppDepend v2019.3 增加了对 MISRA 编码准则的支持，VS 2019 支持、QT 项目、简化的 UI、嵌入式项目支持。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">PVS-Studio，这是一个使用 C/C++ 和 C# 编写的程序源代码中的错误检测工具，2019 年的一些显着变化包括 .NET Core 3 和 3.1 项目分析、MISRA 准则支持、40 多项新检查、对 Java、SonarQube 插件的支持。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">包管理器&nbsp;Conan&nbsp;与&nbsp;Microsoft/vcpkg 也都有一些新变化。</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">最后 Bartek 介绍了 2019 年 C++ 在开发者人群中的地位依然稳定：</p><ul style="box-sizing: inherit; margin: 0px 0px 20px; padding: 0px 0px 0px 20px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit; line-height: 1.875em; margin-top: 0px;">TIOBE 编程语言排行榜中&nbsp;C++ 排到了第 4 位。</li><li style="box-sizing: inherit; line-height: 1.875em;">在 StackOverflow 调查中，C++ 位于 C 上方的第 9 位。</li><li style="box-sizing: inherit; line-height: 1.875em; margin-bottom: 0px;">在 GitHub 的调查中，C++ 排名第 6。</li></ul><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">除了这些榜单，Bartek 自己也做了一个简单的调查问卷，结果显示了关于 C++ 的使用情况，包括使用的标准库版本、工具的选择与对 C++20 新特性的使用等：</p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><img height="665" src="https://oscimg.oschina.net/oscnet/up-0c427072a80149c365a35a2cff94329223f.png" width="600" style="box-sizing: border-box; border: 0px; margin: 0px auto; max-width: 80%; height: auto; vertical-align: middle; cursor: zoom-in;"  alt="" /></p><p style="box-sizing: inherit; margin: 0px 0px 20px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;">完整回顾内容查看原博客：</p><p style="box-sizing: inherit; margin: 0px; line-height: inherit; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #ffffff;"><a href="https://www.bfilipek.com/2019/12/cpp-status-2019.html" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">https://www.bfilipek.com/2019/12/cpp-status-2019.html</a></p><img src ="http://www.cppblog.com/zdhsoft/aggbug/217081.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2020-01-11 10:50 <a href="http://www.cppblog.com/zdhsoft/archive/2020/01/11/217081.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在Deepin linux下使用smartgit以及破解说明</title><link>http://www.cppblog.com/zdhsoft/archive/2020/01/11/smartgit.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Sat, 11 Jan 2020 02:45:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2020/01/11/smartgit.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/217080.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2020/01/11/smartgit.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/217080.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/217080.html</trackback:ping><description><![CDATA[<p>smartgit是一个非常好的带完整git flow的git客户端。支持windows, linux，mac。</p><p>首先到官网下载smartgit包,&nbsp;<a data-cke-saved-href="https://www.syntevo.com/downloads/smartgit/smartgit-19_1_4.deb" href="https://www.syntevo.com/downloads/smartgit/smartgit-19_1_4.deb">Debian Bundle</a>的安装版本。在deepin双击默认安装就可以了。</p><p><span tabindex="-1" contenteditable="false" data-cke-widget-wrapper="1" data-cke-filter="off" cke_widget_inline="" cke_widget_image="" cke_image_nocaption=""  cke_widget_selected"="" data-cke-display-name="图像" data-cke-widget-id="2" role="region" aria-label=" 图像 小部件"><img alt="" data-cke-saved-src="https://img-blog.csdnimg.cn/20191122234144859.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70" src="https://img-blog.csdnimg.cn/20191122234144859.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70"  cke_widget_element"="" data-cke-widget-data="{&amp;quot;hasCaption&amp;quot;:false,&amp;quot;src&amp;quot;:&amp;quot;https://img-blog.csdnimg.cn/20191122234144859.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70&amp;quot;,&amp;quot;alt&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;width&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;height&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;lock&amp;quot;:true,&amp;quot;align&amp;quot;:&amp;quot;none&amp;quot;,&amp;quot;classes&amp;quot;:{&amp;quot;has&amp;quot;:1}}" data-cke-widget-upcasted="1" data-cke-widget-keep-attr="0" data-widget="image" /><span cke_widget_drag_handler_container"="" style="background: url(&quot;https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/widget/images/handle.png&quot;) rgba(220, 220, 220, 0.5); top: -15px; left: 0px; display: block;"><img cke_widget_drag_handler"="" data-cke-widget-drag-handler="1" src="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==" width="15" title="点击并拖拽以移动" height="15" role="presentation" draggable="true"  alt="" /></span><span title="点击并拖拽以改变尺寸">&#8203;</span></span></p><p>然后在deepin启动器，最下面，可以找到smartgit,启动它</p><p><span tabindex="-1" contenteditable="false" data-cke-widget-wrapper="1" data-cke-filter="off" cke_widget_inline="" cke_widget_image="" cke_image_nocaption=""  cke_widget_selected"="" data-cke-display-name="图像" data-cke-widget-id="1" role="region" aria-label=" 图像 小部件"><img alt="" data-cke-saved-src="https://img-blog.csdnimg.cn/20191122234508325.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70" src="https://img-blog.csdnimg.cn/20191122234508325.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70"  cke_widget_element"="" data-cke-widget-data="{&amp;quot;hasCaption&amp;quot;:false,&amp;quot;src&amp;quot;:&amp;quot;https://img-blog.csdnimg.cn/20191122234508325.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70&amp;quot;,&amp;quot;alt&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;width&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;height&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;lock&amp;quot;:true,&amp;quot;align&amp;quot;:&amp;quot;none&amp;quot;,&amp;quot;classes&amp;quot;:{&amp;quot;has&amp;quot;:1}}" data-cke-widget-upcasted="1" data-cke-widget-keep-attr="0" data-widget="image" /><span cke_widget_drag_handler_container"="" style="background: url(&quot;https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/widget/images/handle.png&quot;) rgba(220, 220, 220, 0.5); top: -15px; left: 0px; display: block;"><img cke_widget_drag_handler"="" data-cke-widget-drag-handler="1" src="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==" width="15" title="点击并拖拽以移动" height="15" role="presentation" draggable="true"  alt="" /></span><span title="点击并拖拽以改变尺寸">&#8203;</span></span></p><p>然后选择试用30天，我们就可以使用了，我这里使用的版本是9.1.4版本。</p><p>在<a data-cke-saved-href="https://gitee.com/pedoc/crackSmartGit" href="https://gitee.com/pedoc/crackSmartGit">https://gitee.com/pedoc/crackSmartGit</a>下载发布破解，放到 ~/.config/smartgit目录下面</p><p>然后编辑~/.config/smartgit/smartgit.vmoptions</p><p>我这里配置&nbsp;的是：-javaagent:/home/zdhsoft-linux/.config/smartgit/crackSmartGit.jar=19.1.4</p><p>然后，运行smartgit，在菜单-&gt;帮助-&gt;注册产品 选择这个目录下的licenes.txt文件, 完成注册。</p><p>在<a data-cke-saved-href="https://gitee.com/pedoc/crackSmartGit" href="https://gitee.com/pedoc/crackSmartGit">https://gitee.com/pedoc/crackSmartGit</a>有licenes下载</p><p><span tabindex="-1" contenteditable="false" data-cke-widget-wrapper="1" data-cke-filter="off" cke_widget_inline="" cke_widget_image="" cke_image_nocaption=""  cke_widget_selected"="" data-cke-display-name="图像" data-cke-widget-id="0" role="region" aria-label=" 图像 小部件"><img alt="" data-cke-saved-src="https://img-blog.csdnimg.cn/20191122235405651.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70" src="https://img-blog.csdnimg.cn/20191122235405651.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70"  cke_widget_element"="" data-cke-widget-data="{&amp;quot;hasCaption&amp;quot;:false,&amp;quot;src&amp;quot;:&amp;quot;https://img-blog.csdnimg.cn/20191122235405651.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pkaHNvZnQ=,size_16,color_FFFFFF,t_70&amp;quot;,&amp;quot;alt&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;width&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;height&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;lock&amp;quot;:true,&amp;quot;align&amp;quot;:&amp;quot;none&amp;quot;,&amp;quot;classes&amp;quot;:{&amp;quot;has&amp;quot;:1}}" data-cke-widget-upcasted="1" data-cke-widget-keep-attr="0" data-widget="image" /><span cke_widget_drag_handler_container"="" style="background: url(&quot;https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/widget/images/handle.png&quot;) rgba(220, 220, 220, 0.5); top: -15px; left: 0px; display: block;"><img cke_widget_drag_handler"="" data-cke-widget-drag-handler="1" src="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==" width="15" title="点击并拖拽以移动" height="15" role="presentation" draggable="true"  alt="" /></span><span title="点击并拖拽以改变尺寸">&#8203;</span></span></p><p>最后，在条件富于的情况下，请用正版的smartgit!</p><img src ="http://www.cppblog.com/zdhsoft/aggbug/217080.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2020-01-11 10:45 <a href="http://www.cppblog.com/zdhsoft/archive/2020/01/11/smartgit.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转贴]C++20 最新进展：加入模块化和协程，进入特性冻结阶段</title><link>http://www.cppblog.com/zdhsoft/archive/2019/04/09/216345.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Tue, 09 Apr 2019 05:25:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2019/04/09/216345.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/216345.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2019/04/09/216345.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/216345.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/216345.html</trackback:ping><description><![CDATA[<p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><span style="color: #4f4f4f; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">有了Modules和协程后，go可以一边凉凉。</span><br />原文：<a href="https://www.oschina.net/news/104653/201902-kona-iso-c-committee-trip-report-c20?p=3">https://www.oschina.net/news/104653/201902-kona-iso-c-committee-trip-report-c20?p=3</a><br />刚刚结束的 C++ 标准委员会2019春季会议在夏威夷科纳举办，委员会在这次会议中确定了下一个国际标准 C++20 的全部特性，这标志着&nbsp;<span style="box-sizing: inherit; font-weight: 700;">C++20 的特性设计工作已完成</span>。</p><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">按照 C++20 的发布计划，这次会议正是为了冻结 C++20 的特性而举办，进入特性冻结阶段(Feature freeze)意味着所有的功能特性将被冻结，并且不会再加入更多的新特性。</p><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: inherit; font-weight: 700;">接下来我们看看上周会议确定添加至 C++20 草案的新特性：</span></p><ul style="box-sizing: inherit; margin: 0px; padding: 0px 0px 0px 2.5em; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><span style="box-sizing: inherit; font-weight: 700;"><a href="https://wg21.link/P1103" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">模块化(Modules)</a></span></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><span style="box-sizing: inherit; font-weight: 700;"><a href="https://wg21.link/N4736" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">协程(Coroutines)</a></span></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1091" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">static,&nbsp;thread_local, 和 lambda capture 的结构化绑定</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0339" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::polymorphic_allocator&lt;&gt;</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0811" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::midpoint&nbsp;和&nbsp;std::lerp</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1001" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::execution::unseq&nbsp;执行策略</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1227" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::ssize()&nbsp;作为自由函数(free function)会返回符号大小(signed size)</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1024" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::span&nbsp;的可用性增强</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0920" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">lookup 中新增预计算哈希值的功能(Precalculated hash values)</a></p></li></ul><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">协程的加入应该是最大的惊喜了，值得期待！官方还表示，C++20 应该会是一个像 C++11 那样的大版本。</p><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">以下的特性已在本次会议或之前的会议上通过了批准，但尚未添加到 C++20 中，因为目前规范仍在编写中。它们有望在2019年7月的科隆会议上被加入，不过由于时间限制，可能无法完成所有工作。</p><ul style="box-sizing: inherit; margin: 0px; padding: 0px 0px 0px 2.5em; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1306" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Expansion statements</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1135" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">The C++20 synchronization library</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0645" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::format</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1004" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">constexpr&nbsp;std::vector</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0784" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Allow&nbsp;constexpr&nbsp;allocation, but disallow allocations that are not deleted at compile time</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1328" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">constexpr&nbsp;std::type_info::operator==</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1207" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">New conceptification of iterators</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0798" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Monadic operations for&nbsp;std::optional</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/experimental/source_location" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::source_location</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0429" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::flatmap</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1222" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::flatset</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0228" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::any_invocable</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1293" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::ostream_joiner</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0881" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Stack trace library</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1272" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::byteswap</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1143" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">constinit</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P1152R1" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Deprecating some uses of&nbsp;volatile</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/P0593" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Implicit creation of objects for low-level object manipulation</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://wg21.link/p1099" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">using enum</a></p></li></ul><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">下面的这些特性，早已在之前的会议上通过了批准：</p><ul style="box-sizing: inherit; margin: 0px; padding: 0px 0px 0px 2.5em; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><li style="box-sizing: inherit;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/concepts" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Concepts</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/language/attributes/contract" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Contracts</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/ranges" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Ranges</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/utility#Relational_operators_and_comparison" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">operator&lt;=&gt;</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;">A lot more constexpr features:&nbsp;consteval functions, std::is_constant_evaluated, constexpr union, constexpr try and catch, constexpr dynamic_cast and typeid</p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/container/span" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::span</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/io#Synchronized_output" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Synchronized output</a></p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 0px; line-height: 28px;"><a href="https://en.cppreference.com/w/cpp/atomic/atomic_ref" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">std::atomic_ref</a></p></li></ul><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">按照计划的发布进度，C++20 预计将于明年夏季推出。</p><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><img src="https://oscimg.oschina.net/oscnet/106a2dfcaeca2a55a549362ae6614f000f4.jpg" style="box-sizing: border-box; border: 0px; margin: auto; max-width: 80%; vertical-align: middle; height: auto !important; cursor: zoom-in;"  alt="" /><br style="box-sizing: inherit;" />C++20 发布计划</p><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: inherit; font-weight: 700;">最后，看看 C++ 主要特性的开发进度。</span></p><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">自上次会议以来的变更：</p><table style="box-sizing: border-box; display: block; border-collapse: collapse; border-spacing: 1px; font-size: 14px; color: #444444; overflow: auto; width: 893px; border-width: 0px; border-style: initial; border-color: initial; line-height: 28px; word-break: keep-all; margin-top: 0px; margin-bottom: 16px; max-width: 100%; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; background-color: #ffffff;"><tbody style="box-sizing: inherit;"><tr style="box-sizing: inherit; border-top: 1px solid #cccccc;"><th style="box-sizing: inherit; background: #f8f8f8; padding: 4px 8px; border: 1px solid #dddddd;">特性</th><th style="box-sizing: inherit; background: #f8f8f8; padding: 4px 8px; border: 1px solid #dddddd;">状态</th><th style="box-sizing: inherit; background: #f8f8f8; padding: 4px 8px; border: 1px solid #dddddd;">依赖</th><th style="box-sizing: inherit; background: #f8f8f8; padding: 4px 8px; border: 1px solid #dddddd;">Current Target (Conservative Estimate)</th><th style="box-sizing: inherit; background: #f8f8f8; padding: 4px 8px; border: 1px solid #dddddd;">Current Target (Optimistic Estimate)</th></tr></tbody><tbody style="box-sizing: inherit;"><tr style="box-sizing: inherit; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://en.cppreference.com/w/cpp/language/constraints" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Concepts</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Concepts TS v1 published and merged into C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">&nbsp;</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td></tr><tr style="box-sizing: inherit; background-color: #f8f8f8; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://en.cppreference.com/w/cpp/experimental/ranges" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Ranges</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Ranges TS v1 published and merged into C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Concepts</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td></tr><tr style="box-sizing: inherit; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://wg21.link/P0542" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Contracts</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Merged into C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">&nbsp;</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td></tr><tr style="box-sizing: inherit; background-color: #f8f8f8; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://wg21.link/P1103" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Modules</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Merged design approved for C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">&nbsp;</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td></tr><tr style="box-sizing: inherit; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://wg21.link/N4723" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Coroutines</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">Coroutines TS v1 published and merged into C++20</span></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">&nbsp;</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">C++20</span></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++20</td></tr><tr style="box-sizing: inherit; background-color: #f8f8f8; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://wg21.link/P0443" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Executors</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">Proposed v1 design approved for C++23</span></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">&nbsp;</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">C++26</span></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">C++23</span></td></tr><tr style="box-sizing: inherit; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://wg21.link/N4711" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Networking</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Networking TS v1 published</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">Executors</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++26</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">C++23</td></tr><tr style="box-sizing: inherit; background-color: #f8f8f8; border-top: 1px solid #cccccc;"><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><a href="https://wg21.link/P0194" target="_blank" style="box-sizing: inherit; background-color: transparent; color: #4183c4; text-decoration-line: none;">Reflection</a></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">Reflection TS v1 published</span></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;">&nbsp;</td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">C++26</span></td><td style="box-sizing: inherit; padding: 4px 8px; border-style: solid; border-color: #dddddd;"><span style="box-sizing: inherit; font-weight: 700;">C++23</span></td></tr></tbody></table><blockquote style="box-sizing: inherit; position: relative; font-size: 15px; background-image: initial; background-color: #f6f6f6; margin: 20px 0px; padding: 16px 24px 16px 48px; border-width: initial; border-style: none; border-color: initial; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif;"><p style="box-sizing: inherit; margin: 2px 0px 14px; line-height: 28px;">名词解释</p><ul style="box-sizing: inherit; margin: 0px; padding: 0px 0px 0px 2.5em;"><li style="box-sizing: inherit;">IS = 国际标准。如 C++ 编程语言：C++11, C++14, C++17 等</li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 2px 0px 0px; line-height: 28px;">TS = 技术规范。在该阶段中，特性分支处于可使用状态，但尚未被所有厂商实现。如 Coroutines TS v1, Modules TS v1 等。</p></li><li style="box-sizing: inherit; margin-top: 0.25em;"><p style="box-sizing: inherit; margin: 2px 0px 0px; line-height: 28px;">CD = 委员会草案，即 IS/TS 的草案，用于给标准机构进行审查和反馈("beta testing")。</p></li></ul></blockquote><p style="box-sizing: inherit; margin: 16px 0px 14px; line-height: 28px; color: #333333; font-family: &quot;Pingfang SC&quot;, STHeiti, &quot;Lantinghei SC&quot;, &quot;Open Sans&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; background-color: #ffffff;">据透露，工具研究小组 SG15 决定创建一个 C++&nbsp;生态系统技术报告，该报告将描述新模块化 C++ 中工具（构建系统等）的最佳实践和最新技术。</p><img src ="http://www.cppblog.com/zdhsoft/aggbug/216345.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2019-04-09 13:25 <a href="http://www.cppblog.com/zdhsoft/archive/2019/04/09/216345.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>想当年，360</title><link>http://www.cppblog.com/zdhsoft/archive/2018/02/06/215507.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Tue, 06 Feb 2018 08:25:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2018/02/06/215507.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/215507.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2018/02/06/215507.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/215507.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/215507.html</trackback:ping><description><![CDATA[<div>想当年，我360云盘，还有几个T的电影下载不下来，说好了，给时间让我们备份，结果速度只有100k，还没事老断，不能接着下载<br />想当年，360搞手机，把酷派的大神收过去，说好的，给我们升级OS，然后就没有下文了<br />想当年，我编译一个程序，它报一个大大红叉，然后把我编译的程序删除了<br />想当年，3721这个是周神棍写的<br />想当年，3721被卖掉后，灭3721的也是它<br />想当年，3721是软件安装困绑的鼻祖<br />来三枝香，给360上上<br /></div><img src ="http://www.cppblog.com/zdhsoft/aggbug/215507.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2018-02-06 16:25 <a href="http://www.cppblog.com/zdhsoft/archive/2018/02/06/215507.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在git上面，建了一个开源库</title><link>http://www.cppblog.com/zdhsoft/archive/2018/02/03/215501.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Sat, 03 Feb 2018 10:25:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2018/02/03/215501.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/215501.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2018/02/03/215501.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/215501.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/215501.html</trackback:ping><description><![CDATA[<p style="margin: 0px; padding: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">后面会慢慢加东西，哈</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">https://github.com/zdhsoft</p><img src ="http://www.cppblog.com/zdhsoft/aggbug/215501.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2018-02-03 18:25 <a href="http://www.cppblog.com/zdhsoft/archive/2018/02/03/215501.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>基于typescript创建node工程</title><link>http://www.cppblog.com/zdhsoft/archive/2017/12/23/215440.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Sat, 23 Dec 2017 04:15:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2017/12/23/215440.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/215440.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2017/12/23/215440.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/215440.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/215440.html</trackback:ping><description><![CDATA[<div id="wmd-preview-section-220"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><h1>typescript的开发工具</h1><pre linenums=""  prettyprinted"="" style="box-sizing: border-box; font-family: &quot;Source Code Pro&quot;, monospace; font-size: 12px; white-space: pre-wrap; padding: 10px 20px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; word-break: break-word; word-wrap: break-word; border: 0px; border-radius: 3px; box-shadow: rgba(255, 255, 255, 0.098) 0px 1px 2px inset, rgba(102, 128, 153, 0.047) 40px 0px 0px inset, rgba(102, 128, 153, 0.047) 0px 1px 0px; text-align: start; background-color: #f0f0f0;"><ol style="box-sizing: border-box; font-family: Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑; margin: 0px; padding: 0px 0px 0px 30px;"><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1;">现在</span><span style="box-sizing: border-box; color: #48484c;">typescript</span><span style="box-sizing: border-box; color: #93a1a1;">应用越来越多了，它最大的优势，就是可读性强。增加了很多语法检查，减少了代码误错率。</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1;">目前，我接解触的</span><span style="box-sizing: border-box; color: #48484c;">typescript</span><span style="box-sizing: border-box; color: #93a1a1;">工具主要有</span><span style="box-sizing: border-box; color: #48484c;">vscode</span><span style="box-sizing: border-box; color: #93a1a1;">,</span><span style="box-sizing: border-box; color: #48484c;"> visual stduio </span><span style="box-sizing: border-box; color: #195f91;">2017</span><span style="box-sizing: border-box; color: #93a1a1;">和</span><span style="box-sizing: border-box; color: #48484c;">webstorm</span></code></li></ol></pre></div><div id="wmd-preview-section-854"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>vscode</h2><p style="box-sizing: border-box; margin: 0px 0px 0.3em;">它的优点非常突出。首先是免费开源。每月都会有更新，功能越来越强大。用它来开发typescript工程，完全够用。像layabox和erget这两个游戏引擎的ide,就是基于vscode定制的。而且，它本身就是基于node开发，所以算是node的自扩展工具。它是typescript首选工具</p></div><div id="wmd-preview-section-967"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>visual studio 2017</h2><p style="box-sizing: border-box; margin: 0px 0px 0.3em;">在我心中，visual studio是宇宙无敌第一工具，能开发很多应用，手机跨平台应用不在话下，还有云应用。但是它太大了，离线英文安装包达30G，如果全部安装的话，我的120G的SSD小硬盘，完全不够用。试着用它开发typescript或js，比vscode强大不少。但是，它太大了，跑不起&#8230;</p></div><div id="wmd-preview-section-1278"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>webstorm</h2><p style="box-sizing: border-box; margin: 0px 0px 0.3em;">这是一个基于instllij的开发工具，功能也很全面，对于typescript还有专门的支持。它是收费的，不便宜。体积也比vscode大很多。显示效果，没有vscode高大尚。</p></div><div id="wmd-preview-section-1410"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>最后，各方考虑，还是推荐vscode</h2></div><div id="wmd-preview-section-1425"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h1>正题</h1></div><div id="wmd-preview-section-1529"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>创建node工程</h2></div><div id="wmd-preview-section-2205"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><pre linenums=""  prettyprinted"="" style="box-sizing: border-box; font-family: &quot;Source Code Pro&quot;, monospace; font-size: 12px; white-space: pre-wrap; padding: 10px 20px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; word-break: break-word; word-wrap: break-word; border: 0px; border-radius: 3px; box-shadow: rgba(255, 255, 255, 0.098) 0px 1px 2px inset, rgba(102, 128, 153, 0.047) 40px 0px 0px inset, rgba(102, 128, 153, 0.047) 0px 1px 0px; text-align: start; background-color: #f0f0f0;"><ol style="box-sizing: border-box; font-family: Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑; margin: 0px; padding: 0px 0px 0px 30px;"><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//比如在d:\tmp创建一个目录 ts1</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">mkdir d</span><span style="box-sizing: border-box; color: #93a1a1;">:</span><span style="box-sizing: border-box; color: #48484c;">\tmp\ts1</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">cd d</span><span style="box-sizing: border-box; color: #93a1a1;">:</span><span style="box-sizing: border-box; color: #48484c;">\tmp\ts1</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">npm init  </span><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//按提示完成后，这完成node工程创建</span></code></li></ol></pre></div><div id="wmd-preview-section-2295"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>增加typescript支持</h2></div><div id="wmd-preview-section-9188"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><pre linenums=""  prettyprinted"="" style="box-sizing: border-box; font-family: &quot;Source Code Pro&quot;, monospace; font-size: 12px; white-space: pre-wrap; padding: 10px 20px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; word-break: break-word; word-wrap: break-word; border: 0px; border-radius: 3px; box-shadow: rgba(255, 255, 255, 0.098) 0px 1px 2px inset, rgba(102, 128, 153, 0.047) 40px 0px 0px inset, rgba(102, 128, 153, 0.047) 0px 1px 0px; text-align: start; background-color: #f0f0f0;"><ol style="box-sizing: border-box; font-family: Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑; margin: 0px; padding: 0px 0px 0px 30px;"><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//如果没有安装typescript，则用命令 npm install typescript  -g 安装</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">tsc </span><span style="box-sizing: border-box; color: #93a1a1;">-</span><span style="box-sizing: border-box; color: #48484c;">v </span><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//可以看到当前的版本</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//在d:\tmp\ts1目录下面，输入</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">tsc </span><span style="box-sizing: border-box; color: #93a1a1;">--</span><span style="box-sizing: border-box; color: #48484c;">init</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//完成后，就会生成一个tsconfig.json的文件</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//最后</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">code </span><span style="box-sizing: border-box; color: #93a1a1;">.</span> <span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//用vscode打开当前目录</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//在vscode，新建一个index.ts,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//增加下面一行</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">console</span><span style="box-sizing: border-box; color: #93a1a1;">.</span><span style="box-sizing: border-box; color: #48484c;">log</span><span style="box-sizing: border-box; color: #93a1a1;">(</span><span style="box-sizing: border-box; color: #dd1144;">'hello typescripit'</span><span style="box-sizing: border-box; color: #93a1a1;">);</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//在命令行下，输入tsc后，就会得到一个index.js，</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//然后输入下面命令</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">node </span><span style="box-sizing: border-box; color: #93a1a1;">.</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//就可以运行了</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//或者在vscode下，按下ctrl_+ shift + b,会弹出任务菜单项，选择Tsc编译，</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//然后再配置vscode运行，就可以按F5调试并运行了。</span></code></li></ol></pre></div><div id="wmd-preview-section-9325"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h1>一些问题解决</h1></div><div id="wmd-preview-section-6079"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>增加代码提示</h2><p style="box-sizing: border-box; margin: 0px 0px 0.3em;">好像从vscode 1.8后，就不使用了typing了，改使用@types了。在编写typescript的时候，如果要用到node自带的fs，或http等模块，用import后会有错误提示，那是因为没有安装@types</p></div><div id="wmd-preview-section-6093"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><pre linenums=""  prettyprinted"="" style="box-sizing: border-box; font-family: &quot;Source Code Pro&quot;, monospace; font-size: 12px; white-space: pre-wrap; padding: 10px 20px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; word-break: break-word; word-wrap: break-word; border: 0px; border-radius: 3px; box-shadow: rgba(255, 255, 255, 0.098) 0px 1px 2px inset, rgba(102, 128, 153, 0.047) 40px 0px 0px inset, rgba(102, 128, 153, 0.047) 0px 1px 0px; text-align: start; background-color: #f0f0f0;"><ol style="box-sizing: border-box; font-family: Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑; margin: 0px; padding: 0px 0px 0px 30px;"><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//在命令提示符下：</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #48484c;">npm install </span><span style="box-sizing: border-box; color: #195f91;">@types</span><span style="box-sizing: border-box; color: #93a1a1;">/</span><span style="box-sizing: border-box; color: #48484c;">node@6</span><span style="box-sizing: border-box; color: #93a1a1;">.</span><span style="box-sizing: border-box; color: #48484c;">x   </span><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//我这里用的是node 6.x</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"><span style="box-sizing: border-box; color: #93a1a1; font-style: italic;">//完成后，就可以愉快的使用node的模块的代码提示了</span></code></li></ol></pre></div><div id="wmd-preview-section-7885"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>划分目录</h2><p style="box-sizing: border-box; margin: 0px 0px 0.3em;">默认的情况下，ts和js都是在一起的，生成发布版本的时候，就会有些乱了。所以，将所有生成的代码，放到别的目录。&nbsp;<br style="box-sizing: border-box;" />打开tsconfig.js&nbsp;<br style="box-sizing: border-box;" />找到compilerOptions中的outDir，增加./build,这样就会将代码生成到build里面了，然后修改package.json，修改main为build/index.js就可以运行了。&nbsp;<br style="box-sizing: border-box;" />默认的情况下，&nbsp;<br style="box-sizing: border-box;" />&#8220;allowJs&#8221;: true, /* Allow javascript files to be compiled. */&nbsp;<br style="box-sizing: border-box;" />表示会把代码js文件，一起编译到build下&nbsp;<br style="box-sizing: border-box;" />这样代码，就会好多了：）</p></div><div id="wmd-preview-section-9144"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><h2>去除同名js</h2><p style="box-sizing: border-box; margin: 0px 0px 0.3em;">在没有划分目录的情况下，基于ts生成的js和ts是在同一个目录的，结果在vscode文件列表都会显示，这个vscode设置一下就可以了。&nbsp;<br style="box-sizing: border-box;" />Vscode-&gt;File-&gt;首选项-&gt;设置&nbsp;<br style="box-sizing: border-box;" />增产加 &#8220;<em style="box-sizing: border-box;">*/</em>.js&#8221;: { &#8220;when&#8221;: &#8220;$(basename).ts&#8221; },就可以了，下面是具体配置的例子</p></div><div id="wmd-preview-section-8953"  preview-content"="" style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;, 微软雅黑, &quot; WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Droid Sans Mono&quot;, &quot;Droid Sans Fallback&quot;, sans-serif; color: #333333; font-size: 16px; line-height: 22.8571px; text-align: justify; widows: 1; background-color: #f8f8f8;"><div style="box-sizing: border-box;"></div><pre linenums=""  prettyprinted"="" style="box-sizing: border-box; font-family: &quot;Source Code Pro&quot;, monospace; font-size: 12px; white-space: pre-wrap; padding: 10px 20px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; word-break: break-word; word-wrap: break-word; border: 0px; border-radius: 3px; box-shadow: rgba(255, 255, 255, 0.098) 0px 1px 2px inset, rgba(102, 128, 153, 0.047) 40px 0px 0px inset, rgba(102, 128, 153, 0.047) 0px 1px 0px; text-align: start; background-color: #f0f0f0;"><ol style="box-sizing: border-box; font-family: Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑; margin: 0px; padding: 0px 0px 0px 30px;"><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"files.exclude"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #93a1a1;">{</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/.git"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/.svn"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/.hg"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/CVS"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/node_modules"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span><span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/typings"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span><span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/logs"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span><span style="box-sizing: border-box; color: #1e347b;">true</span><span style="box-sizing: border-box; color: #93a1a1;">,</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/*.js"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #93a1a1;">{</span> <span style="box-sizing: border-box; color: #dd1144;">"when"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #dd1144;">"$(basename).ts"</span> <span style="box-sizing: border-box; color: #93a1a1;">},</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/**.js"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #93a1a1;">{</span> <span style="box-sizing: border-box; color: #dd1144;">"when"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #dd1144;">"$(basename).tsx"</span> <span style="box-sizing: border-box; color: #93a1a1;">},</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #dd1144;">"**/.DS_Store"</span><span style="box-sizing: border-box; color: #93a1a1;">:</span> <span style="box-sizing: border-box; color: #1e347b;">true</span></code></li><li prettyprint=""  linenums"="" style="box-sizing: border-box; padding-left: 10px; color: #bebec5; line-height: 20px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑; font-size: inherit; padding: 0px; color: inherit; border-radius: 0px; background-color: transparent !important;"> <span style="box-sizing: border-box; color: #93a1a1;">},</span></code></li></ol></pre></div><img src ="http://www.cppblog.com/zdhsoft/aggbug/215440.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2017-12-23 12:15 <a href="http://www.cppblog.com/zdhsoft/archive/2017/12/23/215440.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CSDN这是要搞事????</title><link>http://www.cppblog.com/zdhsoft/archive/2017/11/15/215348.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Wed, 15 Nov 2017 06:15:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2017/11/15/215348.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/215348.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2017/11/15/215348.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/215348.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/215348.html</trackback:ping><description><![CDATA[<p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">有时候会上传一些资源共享，以便他人之需，以前都是1c币的。有些是0c币的，但是最近好像有变化了。</p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">首先，是没有0的选择了，最少2c币起步。</p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">第二，随着被下载的次数增加，需要的c币从几何基数增长</p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">每个c币要1RMB的样子，如我下面的git文件，被下载两次后，就从2c币变成12c币，合计12RMB。</p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">http://download.csdn.net/download/zdhsoft/10042921</p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">csdn这是要干什么呢？抢钱？</p><img src ="http://www.cppblog.com/zdhsoft/aggbug/215348.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2017-11-15 14:15 <a href="http://www.cppblog.com/zdhsoft/archive/2017/11/15/215348.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Centos 6,7安装用yum命令 mysql 5.7</title><link>http://www.cppblog.com/zdhsoft/archive/2017/08/29/215205.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Tue, 29 Aug 2017 07:11:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2017/08/29/215205.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/215205.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2017/08/29/215205.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/215205.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/215205.html</trackback:ping><description><![CDATA[<p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: Calibri;">1.Yum</span><span style="font-family: &quot;Microsoft YaHei&quot;;">包的官方地址：</span></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;"><a target="_blank" href="https://dev.mysql.com/downloads/repo/yum/" style="text-decoration-line: none; color: #0c89cf;">https://dev.mysql.com/downloads/repo/yum/</a></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;"><br /></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">选择对应系统的</span><span style="font-family: Calibri;">rpm</span><span style="font-family: &quot;Microsoft YaHei&quot;;">包下载</span>&nbsp;<span style="font-family: &quot;Microsoft YaHei&quot;;">下载的时候要登录的时候，请注册一个。</span></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;然后，把对应的rpm包下载下来</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: Calibri;">2:</span><span style="font-family: &quot;Microsoft YaHei&quot;;">然后把rpm包，传到<a href="http://lib.csdn.net/base/linux" title="Linux知识库" target="_blank" style="text-decoration-line: none; color: #df3434; font-weight: bold;">Linux</a>系统，centos 6,7是有区分的，请对系统做相应的操作。</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">Centos7 :</span><span style="font-family: Calibri;">mysql57-community-release-el7-11.noarch.rpm</span></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">Centos6:mysql57-community-release-el6-11.noarch.rpm</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: Calibri;">3:</span><span style="font-family: &quot;Microsoft YaHei&quot;;">解压安装</span><span style="font-family: Calibri;">rpm</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">输入</span><span style="font-family: Calibri;">su</span><span style="font-family: &quot;Microsoft YaHei&quot;;">，进入</span><span style="font-family: Calibri;">root</span><span style="font-family: &quot;Microsoft YaHei&quot;;">模式</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">输入：</span><span style="font-family: Calibri;">rpm -Uvh mysql57-community-release-el7-11.noarch.rpm</span><span style="font-family: &quot;Microsoft YaHei&quot;;">安装对应的</span><span style="font-family: Calibri;">yum</span><span style="font-family: &quot;Microsoft YaHei&quot;;">包</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-size: 15px; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;;"><span style="font-size: 11pt;">输入：</span><span style="font-size: 9.6pt; color: #0077aa; background: #f8f8f8;">yum</span><span style="font-size: 11pt;">&nbsp;repolist all | grep&nbsp;<a href="http://lib.csdn.net/base/mysql" title="MySQL知识库" target="_blank" style="text-decoration-line: none; color: #df3434; font-weight: bold;">MySQL</a></span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; font-size: 15px; background-color: #ffffff;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: Calibri;">4.</span><span style="font-family: &quot;Microsoft YaHei&quot;;">安装</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">安装</span><span style="font-family: Calibri;"><a href="http://lib.csdn.net/base/mysql" title="MySQL知识库" target="_blank" style="text-decoration-line: none; color: #df3434; font-weight: bold;">mysql</a></span><span style="font-family: &quot;Microsoft YaHei&quot;;">：yum install mysql-community-server</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: Calibri;">5.</span><span style="font-family: &quot;Microsoft YaHei&quot;;">启动</span></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">启动mysql：service mysqld start</p><p style="margin: 0in; padding: 0px; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 9pt; color: #595959;"><span style="font-family: Calibri;">6.</span><span style="font-family: &quot;Microsoft YaHei&quot;;">设置密码</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">注意一下：<a href="http://lib.csdn.net/base/mysql" title="MySQL知识库" target="_blank" style="text-decoration-line: none; color: #df3434; font-weight: bold;">数据库</a>初始化，必须要重置密码才能使用，也就是使用</span><span style="font-family: Calibri;">alter user</span><span style="font-family: &quot;Microsoft YaHei&quot;;">命令将</span><span style="font-family: Calibri;">root</span><span style="font-family: &quot;Microsoft YaHei&quot;;">密码重置。</span></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; font-size: 15px; background-color: #ffffff;"><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">输入：grep</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 9.6pt; color: #0077aa; background: #f8f8f8;">'temporarypassword'</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">&nbsp;/var/log/mysqld</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 9.6pt; color: #909090; background: #f8f8f8;">.</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">log</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">查看密码</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; font-size: 15px; background-color: #ffffff;"><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">然后输入：</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 9.6pt; color: #0077aa; background: #f8f8f8;">mysql</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 9.6pt; color: #990055; background: #f8f8f8;">-uroot -p</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">连接本地的</span><span style="font-family: Calibri; font-size: 11pt;">mysql</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">，提示输入的密码，就是那个上面</span><span style="font-family: Calibri; font-size: 11pt;">grep</span><span style="font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">命令显示的</span></p><p style="margin: 0in; padding: 0px; background-color: #ffffff; font-family: Calibri; font-size: 9.6pt; color: #990055;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">进入</span><span style="font-family: Calibri;">mysql</span><span style="font-family: &quot;Microsoft YaHei&quot;;">后，用下面的命令修改密码：</span></p><p style="margin: 0in; padding: 0px; color: #555555; font-size: 15px; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;;"><span style="font-size: 9.6pt; color: #a67f59; background: #f8f8f8;">mysql&gt;</span><span style="font-size: 9.6pt; color: #0077aa; background: #f8f8f8;">ALTER USER</span><span style="font-size: 9.6pt; color: #669900; background: #f8f8f8;">'root'</span><span style="font-size: 11pt;">@</span><span style="font-size: 9.6pt; color: #669900; background: #f8f8f8;">'localhost'</span><span style="font-size: 9.6pt; color: #0077aa; background: #f8f8f8;">IDENTIFIED BY</span><span style="font-size: 9.6pt; color: #669900; background: #f8f8f8;">'MyNewPass4!'</span><span style="font-size: 9.6pt; color: #909090; background: #f8f8f8;">;</span></p><p style="margin: 0in; padding: 0px; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 9.6pt; color: #909090;">&nbsp;</p><p style="margin: 0in; padding: 0px; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 9.6pt; color: #909090;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: &quot;Microsoft YaHei&quot;;">安装完成后，安装的数据在</span><span style="font-family: Calibri;">:</span><span style="font-family: Calibri;">/var/lib/mysql</span></p><p style="margin: 0in; padding: 0px; background-color: #ffffff; font-family: Calibri; font-size: 9pt; color: #595959;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">1、关闭firewall：</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">systemctl stop firewalld.service #停止firewall</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">systemctl disable firewalld.service #禁止firewall开机启动</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: &quot;Microsoft YaHei&quot;; font-size: 11pt;">firewall-cmd--state #查看默认防火墙状态（关闭后显示notrunning，开启后显示running）</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; padding: 0px; color: #555555; font-family: &quot;microsoft yahei&quot;; background-color: #ffffff; font-size: 11pt;"><span style="font-family: Calibri;">//</span><span style="font-family: &quot;Microsoft YaHei&quot;;">配置连接方式和权限，注意，要执行</span><span style="font-family: Calibri;">flush privileges;</span><span style="font-family: &quot;Microsoft YaHei&quot;;">否则会连接不了</span></p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">grantall on *.* to rock@'%' identified by 'NewPassword1' with grant option;</p><p style="margin: 0in; padding: 0px; color: #555555; background-color: #ffffff; font-family: Calibri; font-size: 11pt;">flush privileges;</p><img src ="http://www.cppblog.com/zdhsoft/aggbug/215205.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2017-08-29 15:11 <a href="http://www.cppblog.com/zdhsoft/archive/2017/08/29/215205.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>windows 下vscode快捷键大全</title><link>http://www.cppblog.com/zdhsoft/archive/2017/08/25/215192.html</link><dc:creator>冬瓜</dc:creator><author>冬瓜</author><pubDate>Fri, 25 Aug 2017 02:31:00 GMT</pubDate><guid>http://www.cppblog.com/zdhsoft/archive/2017/08/25/215192.html</guid><wfw:comment>http://www.cppblog.com/zdhsoft/comments/215192.html</wfw:comment><comments>http://www.cppblog.com/zdhsoft/archive/2017/08/25/215192.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zdhsoft/comments/commentRss/215192.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zdhsoft/services/trackbacks/215192.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 跟据vscode官网pdf，再编辑Visual Studio Code Keyboard shortcuts for windowsGeneral快捷键说明Ctrl+Shift+P, F1Show Command PaletteCtrl+PQuick OpenCtrl+Shift+NNew window/instanceCtrl+Shift+WClose window/instanceBasic ...&nbsp;&nbsp;<a href='http://www.cppblog.com/zdhsoft/archive/2017/08/25/215192.html'>阅读全文</a><img src ="http://www.cppblog.com/zdhsoft/aggbug/215192.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zdhsoft/" target="_blank">冬瓜</a> 2017-08-25 10:31 <a href="http://www.cppblog.com/zdhsoft/archive/2017/08/25/215192.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>