Basic review of C + + introduction

sizeof keyword The sizeof keyword can be used to count the memory size occupied by the data type Syntax: sizeof (data type / variable) int main() { cout << "short Memory space occupied by type: " << sizeof(short) << endl; cout << "int Memory space occupied by type: " << sizeof(int) << endl; cout << ...

Posted by wisewood on Wed, 06 Oct 2021 08:34:10 -0700

Student management system (based on C + + console)

background As a beginner, basically the first year's curriculum will encounter a student management system with a black window, which needs to realize simple problems such as insertion, deletion, modification and display, as well as further functions such as sorting and analysis. This article mainly focuses on explanation, and the specific ...

Posted by hijack on Wed, 06 Oct 2021 08:12:28 -0700

Machine vision Open CV Project II document scanning

catalogue 1, What is document scanning Document scanning steps 2, Introduction to functions and variables used Variable introduction Function introduction 3, Practical operation 1 image preprocessing 2 obtain image contour 3 extract and mark document edges 4 reorder edges 5 trim trim edges 1, What is document scanning Document scanning ...

Posted by ronjon on Wed, 06 Oct 2021 06:49:26 -0700

"C + + language programming basics" learning and objects

Lifetime of variable:   static keyword modifies a local variable. The local variable has a global lifetime, but the local variable is visible. If it leaves the scope, it will not be released    int i = 1;//i is a global variable with static lifetime.    void other() {       static int a = 2;       static int b;   ...

Posted by elentz on Wed, 06 Oct 2021 05:57:32 -0700

What is constexpr?

Constexpr expression refers to an expression whose value will not change and the calculation result can be obtained during compilation. A variable declared constexpr must be a const variable and must be initialized with a constant expression:     constexpr int mf = 20;   // 20 is a constant expression     ...

Posted by eyegraphix on Tue, 05 Oct 2021 17:53:29 -0700

Detailed explanation of C++ STL (recommended collection!!!)

One of the purposes of writing this sharing is to write a summary so that you can review it at any time in the future. Another is to introduce what STL is and how to use STL to solve problems more efficiently and lazily to those Mengxin who don't know much about STL. This article will be updated for a long time. You are welcome to supervise you ...

Posted by reethu on Tue, 05 Oct 2021 14:44:40 -0700

Dog III VS detective headmaster THE MOVIE

subject Topic background I'm the headmaster detective D ? ( X ? X ) \sf D?(X?X) D?(X?X), the supervisor of and childhood ...

Posted by dolce on Tue, 05 Oct 2021 12:10:45 -0700

1095 decoding PAT admission card (25 points)

PAT admission number consists of 4 parts: The first is the level, that is, T stands for the top level; A stands for class A; B stands for class B; The 2nd to 4th digits are the examination room number, ranging from 101 to 999; The 5th ~ 10th place is the examination date, with the format of year, month and day, accounting for 2 places in seque ...

Posted by mdomel on Mon, 04 Oct 2021 13:53:38 -0700

Simulation Implementation of vector

In the last blog, I introduced the use of vector in detail. In order to better use vector, we also need to carefully understand its underlying principle. There are three members inside the vector: membersign_startIndicates the starting position of the used space_finishIndicates where used space ends_end_of_storageIndicates where free spac ...

Posted by jenniferG on Sun, 03 Oct 2021 20:58:45 -0700

C + + STL stack, queue and priority_queue

In C language, we all know about stack and queue. C + + provides a better solution. STL can help developers reduce a lot of work. In other words, some big guys have helped us write these data structures and encapsulated them into a library. For these basic data structures, you can create a data structure object like using int and double. ...

Posted by Bailz on Sun, 03 Oct 2021 20:36:48 -0700