android native crash analysis and solution
Common errors:
Initialization error Array / iterator / pointer access out of bounds Access invalid / null pointer object Memory leak Parameter error stack overflow Type conversion error etc.
1. Log and its explanation:
Log collection already exists by default. If you test and collect logs yourself, you can directly: ADB logcat - B crash ...
Added by LAEinc. Creations on Fri, 21 Jan 2022 04:13:08 +0200
C++ Primer Plus 6th Edition Learning Notes-chapter15
This section lists the difficulties or points of attention in this chapter so that I can review and consolidate or remember. I can get the 6th pdf version of C++ Primer Plus for free if I follow a private conversation.
Friend: Friend function, Friend class, Friend member function Declaration of friend class className;) It can be placed in a ...
Added by haaglin on Fri, 21 Jan 2022 02:37:54 +0200
VS C + + learning notes
VS C + + learning notes:
1. Getting to know C + +:
1.1 the first C + + program:
General framework:
#include <iostream>
using namespace std;
int main(){
system("pause");
return 0;
}
Output hello world
#include <iostream>
using namespace std;
int main(){
cout << "hello world" << endl ...
Added by marcth on Thu, 20 Jan 2022 22:39:04 +0200
Template method pattern
Template method pattern
purpose
Template method: when the steps are determined and fixed, the details of each step are differentiated in multiple subclasses through polymorphic mechanism, which is the effect that template method can achieve;
classification
Template method mode: it belongs to behavior mode in design mode;
Specific examples ...
Added by daedlus on Thu, 20 Jan 2022 19:00:22 +0200
Lecture 2 of Blue Bridge Cup -- recursive [exercise]
preface
Blue Bridge Cup Official Website: Blue Bridge Cup - National College Students TMT industry competition ✨ This blog explains the algorithm knowledge involved in the Blue Bridge Cup C/C + + preparation. This blog is the second lecture: recursion [exercise]
See blog for details of [example] of recursion: Lecture 2 of Blue Bridge Cup ...
Added by forcer on Thu, 20 Jan 2022 18:54:52 +0200
[sitch cup · blue bridge on cloud - algorithm training camp] week 2
Problem Description: 1 Band fraction
100 can be expressed as a fractional form: 100 = 3 + 69258 / 714. It can also be expressed as: 100 = 82 + 3546 / 197. Note: in the band fraction, the numbers 1 ~ 9 appear respectively and only once (excluding 0). Like this band fraction, 100 has 11 representations.
Solution:
#include<iostream>
#inc ...
Added by subasi on Thu, 20 Jan 2022 15:12:08 +0200
Huffman encoding and decoding based on C + + file
Huffman encoding and decoding of files
1. The global variable count conflicts with std:count. It is recommended to use other variable names.2. Memory leakage. Note that the space should be open enough that the pointer cannot cross the boundary. The stack space opened in the main function is generally 8MB. If you want to open a large array, ple ...
Added by IceDragon on Thu, 20 Jan 2022 11:51:25 +0200
C + + exception handling (try catch throw)
1, Application scenarios and principles of exception handling
1. Scene
When doing division, the divisor is 0;The user entered a negative number when entering the age;When using the new operator to dynamically allocate space, the space cannot be allocated due to insufficient space;Subscript out of bounds when accessing array elements;When open ...
Added by deception54 on Thu, 20 Jan 2022 09:39:36 +0200
4 questions about priority queue priority_queue
The k-th largest element of the array
Title Link There are two ways to use the heap:
Use the small root heap with the size of the total number of elements. After k elements are popped, the top element of the heap is the k-largest element among all elements.Maintain a K-size large root heap, so that the first k largest elements of all e ...
Added by mikeabe on Thu, 20 Jan 2022 05:01:18 +0200
[learn OpenCV4] geometric drawing method
before starting the text, first know that the (0, 0) coordinate point in the screen is in the upper left corner and the maximum coordinate is in the lower right corner.
1, Drawing of basic graphics
1. Rectangle
the function of drawing rectangle in OpenCV is rectangle().
void rectangle(InputOutputArray img, Rect ...
Added by JasonMWaldo on Thu, 20 Jan 2022 01:29:03 +0200