C + + features: encapsulation, inheritance, polymorphism
1, Class and data abstraction
The idea of object-oriented is to regard anything as an object. The object has its own attributes and behavior. Collecting these attributes is the task of data abstraction.
What is included in an empty class:
class empty
{
public:
empty(); // non-parameter constructor
empty(const empty &rh); // cop ...
Posted by estero2002 on Mon, 03 Jan 2022 01:04:13 +0100
Simple understanding of templates and overloads
explain
angle
Introduce templates and overloads from the perspective of compilation
Unique symbol
The default functions are strongly signed, and global, unless explicitly specified
C + + overloading
Overload concept
The function parameters are different and the fu ...
Posted by tappy on Sun, 02 Jan 2022 23:40:58 +0100
UE4 Pak package hot update
pak file, also known as pak package, is a file format used by UE4 to update resources (including hot update). UE4 combines multiple files into one pak file and updates resources through pak files. pak files can not only load UE4 resource files, such as uasset, umap, etc., but also load non resource files, such as xml, json, txt, etc, In addi ...
Posted by scnjl on Sun, 02 Jan 2022 22:52:05 +0100
c + + freshman basic information statistics software
catalogue
Basic software functions:
1. Enter new student's personal information
2. Newly added information
3. Delete all information according to the new student's name
4. Display the new student information that has been entered and added
5. Search for information by student's name
6. Ranking from high to low according to the fre ...
Posted by heshan on Sun, 02 Jan 2022 22:02:47 +0100
c++ 11 standard template (STL) STD:: Map (II)
iterator
Returns an iterator that points to the first element of the container
std::map<Key,T,Compare,Allocator>::begin,
std::map<Key,T,Compare,Allocator>::cbegin
iterator begin(); (C++11 front)
iterator begin() noexcept; (C++11 rise)
const_iterator begin( ...
Posted by jameslynns on Sun, 02 Jan 2022 17:47:31 +0100
Simple analysis of C + + intelligent pointer
The meaning of smart pointer
In C + +, new and delete are the keywords to apply for and destroy heap memory. After applying for heap memory, programmers often forget to delete to release heap memory, which is easy to cause a phenomenon - memory leakage, that is, a piece of heap memory is not released after being applied, so that other programs ...
Posted by shmeeg on Sun, 02 Jan 2022 15:38:44 +0100
Leetcode question brushing diary: 11-15 questions
brief introduction
The author graduated from Xi'an Jiaotong University in 2021 and will continue to study postgraduate in this university in September of the same year. After experiencing the intense and exciting job search process of some students around him, the 60w + offer and 30w offer are greatly related to his ability to tear the cod ...
Posted by malikah on Sun, 02 Jan 2022 14:29:47 +0100
Introduction to C + + using gflags library functions
Introduction:
gflags is google's open source project for handling command line parameters. Using c + + development, with python interface.
The definition of flag can be scattered in various source codes instead of being put together. A source file can define some of its own flags, which can be used by applications linked to the file. This mak ...
Posted by avillanu on Sun, 02 Jan 2022 14:28:51 +0100
C + + practice - omission and access rights of virtual function keywords
The description of virtual functions is as follows:
1. Because virtual functions only call objects of classes, global or static functions cannot be declared as virtual functions.
2. You can use the virtual keyword to declare in a derived class that this is a virtual function that overrides a function of the base class, but this is not necessa ...
Posted by ruraldev on Sun, 02 Jan 2022 07:27:18 +0100
C + + demonstrates the breadth traversal and depth traversal of undirected graphs
A little white ~ ~ ~ directly on the report and code
[problem description]
Write a program to demonstrate the traversal operation of undirected graph.
[basic requirements]
Taking adjacency table as storage structure, the depth first and breadth first traversal of connected undirected graph are realized by recursive algorithm.With the help o ...
Posted by siobhan on Sun, 02 Jan 2022 03:22:16 +0100