<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>昊虹AI笔记网 - C++笔记</title>
    <link>https://www.hhai.cc/forum-56-1.html</link>
    <description>Latest 20 threads of C++笔记</description>
    <copyright>Copyright(C) 昊虹AI笔记网</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 16 May 2026 23:27:16 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.hhai.cc/static/image/common/logo_88_31.gif</url>
      <title>昊虹AI笔记网</title>
      <link>https://www.hhai.cc/</link>
    </image>
    <item>
      <title>利用C++中的函数getTickCount()和getTickFrequency()测量代码段的运行时间</title>
      <link>https://www.hhai.cc/thread-111-1-1.html</link>
      <description><![CDATA[可利用C++中的函数getTickCount()和getTickFrequency()测量代码段的运行时间

函数getTickCount()：用于返回从程序启动到当前所经的计时周期数。

函数getTickFrequency()：用于返回CPU的频率，即每秒多少个周期，单位为Hz。

明白这两个函数返回值的含义后，再看 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Mon, 07 Nov 2022 04:58:02 +0000</pubDate>
    </item>
    <item>
      <title>详解C++标准库＜sstream＞中的类stringstream</title>
      <link>https://www.hhai.cc/thread-100-1-1.html</link>
      <description><![CDATA[详解C++标准库＜sstream＞中的类stringstream

目录

[*]一、字符串格式化函数sprintf()存在的问题
[*]二、详细介绍C++标准库中的类stringstream

一、字符串格式化函数sprintf()存在的问题
在实际工作中，我们常常需要将数值型数据转化为字符串型数据。

此 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Fri, 28 Oct 2022 03:50:10 +0000</pubDate>
    </item>
    <item>
      <title>C/C++函数形参传实参时值传递、指针传递、引用传递的区别?</title>
      <link>https://www.hhai.cc/thread-93-1-1.html</link>
      <description><![CDATA[C/C++函数参数传递时值传递、指针传递、引用传递的区别是什么？

值传递：形参是实参的副本(复制、拷贝)，形参值的改变不会影响实参的值，大家初学函数时接触到的第一个传参例子都为这种。

指针传递：形参是指针类型，形参作指针运算后指向的就是实参，所以会影响 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Wed, 26 Oct 2022 02:35:46 +0000</pubDate>
    </item>
    <item>
      <title>为什么引用传递的参数名前通常都用const作了修饰？</title>
      <link>https://www.hhai.cc/thread-92-1-1.html</link>
      <description><![CDATA[阅读本文之前建议大家先阅读下面这篇文章：
C/C++函数参数传递时值传递、指针传递、引用传递的区别是什么？

这篇文章说说“为什么引用传递的参数名前通常都用const作了修饰？”

const 修饰变量时表明该变量的值不可被改变。

如果输入参数采用“值传递”，由于 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Wed, 26 Oct 2022 02:35:16 +0000</pubDate>
    </item>
    <item>
      <title>安装Visual Studio 2015(VS2015)时提示安装包JavaScript_ProjectSystem.msi丢失或损坏的解决方法</title>
      <link>https://www.hhai.cc/thread-83-1-1.html</link>
      <description><![CDATA[安装Visual Studio 2015(VS2015)时提示安装包JavaScript_ProjectSystem.msi丢失或损坏的解决方法

相信不少同学在安装Visual Studio 2015(VS2015)时都会遇到这个问题，如下图所示：


解决这个问题的办法是重新下一个Visual Studio 2015(VS2015)的安装包，把您硬盘 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Tue, 18 Oct 2022 12:49:27 +0000</pubDate>
    </item>
    <item>
      <title>C++类中成员函数声明后面的const的含义</title>
      <link>https://www.hhai.cc/thread-82-1-1.html</link>
      <description><![CDATA[C++类中成员函数声明后面的const的含义

const一般是对类中成员函数属性的声明，但这个声明的位置怪怪的，只能放在函数声明的尾部，大概是因为其它地方都已经被占用了。

用const对成员函数进行声明，表示这个函数不会修改类中的任何数据成员。
如果在编写const成 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Tue, 18 Oct 2022 04:38:15 +0000</pubDate>
    </item>
    <item>
      <title>详解让人闹心的C++语句 cout＜＜“Hello“＜＜endl；</title>
      <link>https://www.hhai.cc/thread-81-1-1.html</link>
      <description><![CDATA[详解让人闹心的C++语句 cout＜＜“Hello“＜＜endl；

首先说下语句 cout＜＜“Hello“＜＜end；的作用，
它的作用是输出字符串Hello和换行符到屏幕，它是通过“C++的运算符重载”原理实现的。

先上代码和运行结果：

运行结果如下：


下面开始详解这句代码 ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Tue, 18 Oct 2022 03:56:02 +0000</pubDate>
    </item>
    <item>
      <title>如何禁用VS(Visual Studio)的4819号警告?</title>
      <link>https://www.hhai.cc/thread-60-1-1.html</link>
      <description><![CDATA[如何禁用VS(Visual Studio)的4819号警告?

如果不禁用这个警告，编译时会出现如下警告提示：



具体的禁用方法如下：]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Fri, 14 Oct 2022 22:31:57 +0000</pubDate>
    </item>
    <item>
      <title>Visual Studio中怎样的配置只对单个项目(工程)有效？怎样的配置对所有项目(工程)都有效？</title>
      <link>https://www.hhai.cc/thread-59-1-1.html</link>
      <description><![CDATA[Visual Studio中怎样的配置只对单个项目(工程)有效？怎样的配置对所有项目(工程)都有效？


以Visual Studio2015为例，其它版本都大同小异。

如果想配置只对单个项目(工程)有效，按下面的截图操作：

                                           

          ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Fri, 14 Oct 2022 21:50:19 +0000</pubDate>
    </item>
    <item>
      <title>\\opencv\\build\\x86下的vc6、vc7、vc8、vc9、vc10、vc11、vc12、vc14、vc15是什么意思？</title>
      <link>https://www.hhai.cc/thread-58-1-1.html</link>
      <description><![CDATA[\\opencv\\build\\x86下的vc6、vc7、vc8、vc9、vc10、vc11、vc12、vc14、vc15是什么意思？


[*]vc6  代表 Visual Studio 6
[*]vc7  代表 Visual Studio 2003
[*]vc8  代表 Visual Studio 2005
[*]vc9  代表 Visual Studio 2008
[*]vc10 代表 Visual Studio 2010
[ ...]]></description>
      <category>C++笔记</category>
      <author>昊虹君</author>
      <pubDate>Fri, 14 Oct 2022 13:44:52 +0000</pubDate>
    </item>
  </channel>
</rss>