Knowledge of documents

1. What is a file and its unique identification: three elements (path, file name, suffix) File: a collection of data stored on external media 2. File operation function 2.1 fopen return value: two parameters of FILE pointer FILE * (the first parameter [FILE name] and the second parameter [how to open the FILE]) 2.2 there is only one Fclose} par ...

Added by dai.hop on Mon, 03 Jan 2022 00:10:11 +0200

C + + basic data types, constants and variables (Chapter 2)

catalogue Basic data types that C + + can handle Data in program Integer type Character type (char) Floating Point Types String type (see Chapter 6 for details) Boolean type (bool) Value range of each basic type constant integer constant Floating point constant Variable: an amount whose value is variable during the operation ...

Added by btherl on Mon, 03 Jan 2022 00:08:32 +0200

c language small project three piece chess

c language small project three piece chess Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface Tip: C language learning, record your learning process, thank you for your criticism and correction 1, Overall thinking First of all, ...

Added by ron8000 on Sun, 02 Jan 2022 21:20:14 +0200

[Leetcode]5970. Maximum number of employees attending the meeting

[Title Description] Force bucklehttps://leetcode-cn.com/problems/maximum-employees-to-be-invited-to-a-meeting/ A company is going to organize a meeting with n# employees on the invitation list. The company has prepared a round table for any number of employees. Employee numbers are 0} to n - 1. Each employee has an employee who likes , and ...

Added by dhope on Sun, 02 Jan 2022 20:42:01 +0200

In priority_ Understanding and implementation of container and container adapter under queue

priority_queue By default, the priority queue uses vector as its underlying data storage container, and the heap algorithm is used on the vector to construct the elements in the vector into a heap structure, so priority_queue is the heap. Priority can be considered for all locations where the heap needs to be used_ queue. be care ...

Added by lowspeed on Sun, 02 Jan 2022 19:53:46 +0200

LeetCode brush notes sorting algorithm merge sorting

Introduction to merge sort Algorithm idea: The core idea of merge sort is to use divide and conquer strategy to classify the sort task of the whole array into two sub problems, the first half sort and the second half sort, and then integrate the two ordered parts to complete the overall sort. That is, the array is divided into several subsequ ...

Added by cursed on Sun, 02 Jan 2022 18:51:09 +0200

Introduction to behavior tree

Original link an introduction to Behavior Tree library It is mainly used for robot and game AI instead of finite element state machine characteristic: You can perform asynchronous actionsYou can create a tree at run timeCustom trees can be converted into plug-in links and loaded dynamically at run timeIncluding log / optimization architec ...

Added by jasonbullard on Sun, 02 Jan 2022 18:37:48 +0200

C language student management system

Project introduction Student information management system is a system based on C language, which is useful to bubble sort, pointer, structure, binary array and so on. Write each function through modular method, and call the functions of each module in the main interface function to realize the following specific functions: Addition, deletion ...

Added by M2tM on Sun, 02 Jan 2022 10:25:24 +0200

Go Style C + + collaboration library CO Quick Start Guide

github https://github.com/idealvin/co Reference documents chinese: github giteeEnglish: github gitee What is CO CO is an elegant and efficient C + + basic library, which supports Linux, Windows, Mac and other platforms. It implements a series of high-quality basic components such as golang like coprocess, coprocess based network programmin ...

Added by oughost on Sun, 02 Jan 2022 05:22:57 +0200

C++ STL learning notes - vector

preface Vector is a vector type. Like a container, it can store any type of dynamic array and increase and reduce data. Unlike arrays, which can only be static space, the implementation of vector uses pointers. vector is part of the C + + standard template library. It is a multifunctional template library and function class that can operate a ...

Added by findshorty on Sun, 02 Jan 2022 03:02:51 +0200