Uncategorized

Clion + platformio + esp32 development environment configuration

Article directory 1. Install platformio 1. Open the windows powershall terminal and run the following command 2. Add the path to the system environment variable 2. cilon installation plugin 1. Install platformio 2. New project 1. Install platformio 1. Open the windows powershall terminal and run the following command wget https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -O get-platformio.py python3 get-platformio.py …

Clion + platformio + esp32 development environment configuration Read More »

Beginner Android, using ClipDrawable resources using Drawable resources (16)

ClipDrawable represents cutting a “picture fragment” from other [bitmaps.] The root element in XML is , and the direction of cutting is controlled by clipOrientation Here is an example of a slowly unfolding picture First define a ClipDrawable resource file [my_clip.xml] <?xml version="1.0" encoding="utf-8"?> <clip xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/fengjing" android:clipOrientation="horizontal" android:gravity="center"> </clip> Next, reference it in the …

Beginner Android, using ClipDrawable resources using Drawable resources (16) Read More »

Beginners take you to learn series Introduction to the use of Android services

Let’s introduce the use of Android services. Interested partners are welcome to come and discuss! ! ! Android service (Service) A service is a component that runs in the background and performs long-running tasks that do not require user interaction. Works even if the app is destroyed. A service basically contains two states − Services …

Beginners take you to learn series Introduction to the use of Android services Read More »

Basic programming topic set 6-6 Find the sum of factorials of singly linked list nodes (15 points)

Problem Description: Problem solving ideas: Here I choose to use the search with memo (recursion) to obtain the factorial of a number, to avoid the easy timeout when the number of the test sample is relatively large, so there is no need to loop for the factorial Problem solving code: int a[100] = {1}; int …

Basic programming topic set 6-6 Find the sum of factorials of singly linked list nodes (15 points) Read More »

Basic Programming Topic Set 6-4 Find the Average of Elements of a Custom Type (10 points)

Problem Description: Problem solving ideas: The title is given the ElementType type, so we need to define the type of the variable is also defined according to the ElementType, But it should be noted that when return returns, it is best to × 1.0, so as to avoid the loss of intensive reading of floating-point …

Basic Programming Topic Set 6-4 Find the Average of Elements of a Custom Type (10 points) Read More »