C++ Implements Queue Data Structure (Link List Description)
Queues are linear FIFO s that can be described using linked lists or arrays. A queue should have the following functions:
1. Create a queue;
2. Check if the queue is not empty;
3. Get the length of the queue;
4. Get the elements of the new team;
...
Posted by 7pm on Tue, 10 Sep 2019 14:30:46 +0200
Dokit supports iOS local crash viewing
I. Preface
Crash problems may arise in our applications during daily development or testing. We should adopt a zero tolerance attitude towards such problems, because if such problems occur online, it will seriously affect the user's experience.
If Crash happens to be in the process of development, developers can locate the cause of the problem ...
Posted by inutero on Tue, 10 Sep 2019 05:33:26 +0200
CMake Introduction - 04 - Custom Compilation Options
work environment
System: macOS Mojave 10.14.6
CMake: Version 3.15.0-rc4
Hello,World! - Custom compilation options
CMake allows you to add compilation options to your project, so that you can choose the most appropriate compilation solution based on the user's environment and needs.
For example, you can set the MathFunctions library as an opti ...
Posted by Zyx on Fri, 23 Aug 2019 11:57:36 +0200
Reaction-native-baidu-map iOS end integration
Recently, many netizens have asked RN how to integrate Baidu Map. I used react-native-baidu-map in both previous projects. I feel that the steps are slightly complicated. If there is a slight omission in one step, it is easy to make a mistake. Next, I will build a new project from scratch and record the process of my installation step by step. ...
Posted by mosizlak on Wed, 17 Jul 2019 00:48:24 +0200
Location, Destination Display, Path Planning, Navigation
1. First, how to access Baidu Map
1) Open Baidu Map and Open Platform Website first. Find the relevant download module and download the SDK packages as required. I chose "Download All" here.
2) Next, it is necessary to apply for the key on the website, and the application procedure can see the official documents.
Application key
3) Ac ...
Posted by consolestrat on Fri, 05 Jul 2019 00:27:13 +0200
Dude, where is my method?
Links to the original text: Dude, Where's my Call?The original chain of the translation: Dude, where is my method?
Imagine one day you're feeding some seemingly harmless code to the Swift compiler.
// xcrun -sdk macosx swiftc -emit-executable cg.swift
import CoreGraphics
let path = CGPathCreateMutable()
CGPathMoveToPoint(path, nil, 0.0, 23.0) ...
Posted by theorok on Fri, 28 Jun 2019 01:12:24 +0200
Mac environment, install OpenCV, VScode debugging C++ program
background
Recently, OpenCV, a code related to image recognition, has been studied. To facilitate debugging, a debugging environment for debugging c++ programs on Mac has to be set up.I'm running away. Share it with you.
Environmental Science
Mac OS 10.14.5
xcode-select v2354
Visual Studio code 1.35.1
OpenCV 3.4.5
Clang 1001.0.46.4
CMake 3.14 ...
Posted by FluxNYC on Thu, 27 Jun 2019 18:18:20 +0200
iOS Development Skills (I)
1. Prohibit Cell Phone Sleep
[UIApplication sharedApplication].idleTimerDisabled = YES;
2. Hide a line of cell s
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
// If you need to hide the line, return to the height of 0.
if(indexPath.row == YouWantToHideRow)
return 0;
return ...
Posted by spaze on Tue, 18 Jun 2019 23:21:19 +0200
Official swiftUI tutorial
3. Combine View s with Stacks
After creating the title view in the previous section, let's add a text view that displays landmark details, such as the name of the park and the state in which it is located.
When creating a SwiftUI view, we can describe its content, layout, and behavior in the body property of the view.Since the body property o ...
Posted by GeoffOs on Fri, 14 Jun 2019 22:05:08 +0200
APP exception crash crawl in iOS
NSSetUncaughtExceptionHandler
Use your own program to capture crash and save it locally
Create a new class inherited from NSObject (the process of Xcode creating an empty project is omitted), named CatchCrash, and write in the h and m files:
void uncaughtExceptionHandler(NSException *exception)
{
// Exceptional stack informa ...
Posted by l_evans on Sun, 09 Jun 2019 01:24:42 +0200