楼主: Nicolle
703 33

C++ Data Structures and Algorithms [推广有奖]

版主

巨擘

0%

还不是VIP/贵宾

-

TA的文库  其他...

Python Programming

SAS Programming

Structural Equation Modeling

威望
16
论坛币
12282262 个
学术水平
2750 点
热心指数
2704 点
信用等级
2563 点
经验
423894 点
帖子
17934
精华
76
在线时间
6721 小时
注册时间
2005-4-23
最后登录
2018-8-19

Nicolle 学生认证  发表于 2018-6-10 07:01:04 |显示全部楼层

本帖隐藏的内容

CPP-Data-Structures-and-Algorithms-master.zip (742.79 KB)

  1. C++ Data Structures and Algorithms
  2. This is the code repository for C++ Data Structures and Algorithms, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

  3. About the Book
  4. C++ is a general-purpose programming language which has evolved over the years and is used to develop software for many different sectors. This book will be your companion as it takes you through implementing classic data structures and algorithms to help you get up and running as a confident C++ programmer.

  5. Instructions and Navigation
  6. All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

  7. All code files are present in their respective folder.

  8. The code will look like the following:

  9. // in_out.cpp
  10. #include <iostream>
  11.   int main ()
  12.   {
  13.      int i;
  14.      std::cout << "Please enter an integer value: ";
  15.      std::cin >> i;
  16.      std::cout << "The value you entered is " << i;
  17.      std::cout << "\n";
  18.      return 0;
  19.    }
  20. To get through this book and successfully complete all the source code examples, you will need the following specifications:

  21. Desktop PC or Notebook with Windows, Linux, or macOS
  22. GNU GCC v5.4.0 or above
  23. Code::Block IDE v17.12 (for Windows and Linux OS) or Code::Block IDE v13.12 (for macOS)
  24. Related Products
  25. C++ High Performance

  26. Mastering the C++17 STL

  27. Learning C++ Functional Programming
复制代码



stata SPSS
Nicolle 学生认证  发表于 2018-6-10 07:02:57 |显示全部楼层
  1. // Project: Deque.cbp
  2. // File   : main.cpp
  3. #include <iostream>
  4. #include "Deque.h"

  5. using namespace std;

  6. int main()
  7. {
  8.     // NULL
  9.     Deque<int> deque = Deque<int>();

  10.     // Enqueue several numbers to the deque
  11.     // 26
  12.     deque.EnqueueFront(26);
  13.     // 26 - 78
  14.     deque.EnqueueBack(78);
  15.     // 26 - 78 - 44
  16.     deque.EnqueueBack(44);
  17.     // 91 - 26 - 78 - 44
  18.     deque.EnqueueFront(91);
  19.     // 35 - 91 - 26 - 78 - 44
  20.     deque.EnqueueFront(35);
  21.     // 35 - 91 - 26 - 78 - 44 - 12
  22.     deque.EnqueueBack(12);

  23.     // list the element of queue
  24.     while(!deque.IsEmpty())
  25.     {
  26.         // Get the front element
  27.         cout << deque.Back() << " - ";

  28.         // Remove the front element
  29.         deque.DequeueBack();
  30.     }
  31.     cout << "END" << endl;

  32.     return 0;
  33. }
复制代码
回复

使用道具 举报

hjtoh 发表于 2018-6-10 07:10:46 来自手机 |显示全部楼层
Nicolle 发表于 2018-6-10 07:01
**** 本内容被作者隐藏 ****
数据结构
回复

使用道具 举报

humancat 发表于 2018-6-10 07:45:38 |显示全部楼层
okokokokokokokok
回复

使用道具 举报

zhaosl 发表于 2018-6-10 08:10:57 |显示全部楼层
回复

使用道具 举报

alexshawn 发表于 2018-6-10 08:13:13 |显示全部楼层
很棒~~ 楼主大爱!!
回复

使用道具 举报

yazxf 发表于 2018-6-10 08:21:30 |显示全部楼层
多谢你的书!
回复

使用道具 举报

iiam04210817 学生认证  发表于 2018-6-10 10:00:39 |显示全部楼层
回复

使用道具 举报

ccmchy 在职认证  企业认证  发表于 2018-6-10 10:13:45 |显示全部楼层
thanks
回复

使用道具 举报

life_life 发表于 2018-6-10 10:28:23 |显示全部楼层
看看 看看 ,,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 我要注册

GMT+8, 2018-8-19 12:06