⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e06-01.cpp

📁 游戏开发数据结构Data Structures for Game Programmers
💻 CPP
字号:
// =======================================================
//  Chapter 6, Example 1
//  Building a simple list
// =======================================================
#include "SLinkedList.h"



void main()
{
    // create a new linked list.
    SListNode<int>* list = new SListNode<int>;
    list->m_data = 10;

    // add 20 to the end.
    list->m_next = new SListNode<int>;
    list->m_next->m_data = 20;

    // add 30 to the end.
    list->m_next->m_next = new SListNode<int>;
    list->m_next->m_next->m_data = 30;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -