<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>C&#43;&#43;基础 on 杨刚的个人网站</title>
    <link>https://www.ygang.top/tags/c&#43;&#43;%E5%9F%BA%E7%A1%80/</link>
    <description>Recent content in C&#43;&#43;基础 on 杨刚的个人网站</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <copyright>Copyright © 2018-2025 GradyYoung. All rights reserved.</copyright>
    <lastBuildDate>Fri, 19 Jan 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ygang.top/tags/c++%E5%9F%BA%E7%A1%80/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>1、c&#43;&#43;语言概述</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/c2ec0c28/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/c2ec0c28/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;什么是c++ 
    &lt;div id=&#34;什么是c&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e4%bb%80%e4%b9%88%e6%98%afc&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;C++ 是一种静态类型的、编译式的、通用的、大小写敏感的、不规则的编程语言，支持过程化编程、面向对象编程和泛型编程。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>2、c&#43;&#43;变量及标识符</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/cc9db325/</link>
      <pubDate>Sat, 11 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/cc9db325/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;变量 
    &lt;div id=&#34;变量&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%8f%98%e9%87%8f&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;作用：给一段指定内存空间起名字，方便操作这段内存空间&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>3、c&#43;&#43;的数据类型</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/312172fe/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/312172fe/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;数据类型的作用 
    &lt;div id=&#34;数据类型的作用&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e7%9a%84%e4%bd%9c%e7%94%a8&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;C++规定在创建一个变量或者常量时，必须要指定出相应的数据类型，否则无法给变量分配内存&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>4、c&#43;&#43;的运算符</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/340ce84a/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/340ce84a/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;运算符 
    &lt;div id=&#34;运算符&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e8%bf%90%e7%ae%97%e7%ac%a6&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;作用&lt;/strong&gt;：用于执行代码的运算&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>5、程序流程控制</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/a7495c4c/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/a7495c4c/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;选择结构 
    &lt;div id=&#34;选择结构&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e9%80%89%e6%8b%a9%e7%bb%93%e6%9e%84&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;h3 class=&#34;relative group&#34;&gt;if-else if-else 
    &lt;div id=&#34;if-else-if-else&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#if-else-if-else&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h3&gt;
&lt;p&gt;和java的用法一样&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>6、数组</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/41ce178e/</link>
      <pubDate>Sat, 11 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/41ce178e/</guid>
      <description>&lt;p&gt;数组是放在连续的内存空间中，相同数据类型的一个集合&lt;/p&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一维数组 
    &lt;div id=&#34;一维数组&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e4%b8%80%e7%bb%b4%e6%95%b0%e7%bb%84&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;一维数组定义的三种方式：&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>7、函数</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/3078886e/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/3078886e/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;概述 
    &lt;div id=&#34;概述&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e6%a6%82%e8%bf%b0&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;作用&lt;/strong&gt;：将一段经常使用的代码封装起来，减少重复代码&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>8、指针</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/0915395f/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/0915395f/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;指针的基本概念 
    &lt;div id=&#34;指针的基本概念&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e6%8c%87%e9%92%88%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;指针的作用&lt;/strong&gt;： 可以通过指针间接访问内存，指针也是一种数据类型&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>9、结构体</title>
      <link>https://www.ygang.top/posts/d8245fe1/09e70634/24ff7c0a/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/d8245fe1/09e70634/24ff7c0a/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;结构体基本概念 
    &lt;div id=&#34;结构体基本概念&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e7%bb%93%e6%9e%84%e4%bd%93%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;结构体属于用户自定义的数据类型，允许用户存储不同的数据类型&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
