[UE4 C + +] generate character within the specified area
preface
This article will tell you to generate roles within a specified range.
Create C + + files
Right click the blank area of the folder, create a new C + + file, and inherit the Actor class.
. h file
Adding a box component is mainly used to specify the creation range.
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
class UBoxComponent* ...
Added by MidOhioIT on Mon, 10 Jan 2022 23:09:53 +0200
❤️ c + + get the current time, there is a small detail! ❤️
c + + get the current time
1. Basic concepts
time stamp
Timestamp is a time representation. It is defined as the total number of seconds from 00:00:00 on January 1, 1970 Greenwich mean time to the present.
typedef __int64 __time64_t;
typedef __time64_t time_t;
In c + +, we define the data type time_t is the timestamp. At present, a c ...
Added by BittenApple on Mon, 10 Jan 2022 21:18:27 +0200
CMake quick build installation tool, CMake quick package script - PKG CMake
CMake quick build installation tool, CMake quick package script - PKG CMake
Have you ever written a lot of CMake build code before writing code? Have you ever written a bunch of CMake installation and export codes such as install(), export() when encapsulating your own library? Have you ever hoped that you can quickly build something that can ...
Added by wxflint on Mon, 10 Jan 2022 18:11:21 +0200
linux applications: multithreaded programming
Thread is very commonly used in linux application development, because some functions need real-time response, while some functions are time-consuming. Therefore, the concept of concurrency is introduced, that is, task scheduling and time slice rotation. There is only one purpose: to make more efficient use of cpu. So if you don't use other thr ...
Added by petersro on Mon, 10 Jan 2022 17:49:46 +0200
Crystal's [starch cup · blue bridge on cloud - algorithm training camp] week 1 assignment
First week of Blue Bridge Cup preparation
Question 1: running training
Problem description Xiao Ming wants to do a running training. At the beginning, Xiao Ming is full of physical strength, and the physical strength value is 10000.
If Xiao Ming runs, he will lose 600 physical strength per minute. If Xiao Ming has a rest, he will increase hi ...
Added by AndyB on Mon, 10 Jan 2022 07:27:11 +0200
Daily practice (day01)
preface
Today is the first day, so let's simply send it to the topic to play, not for anything else, just for pleasure. Although this is a simple topic, I didn't expect that I didn't pay attention to several variables. I was stunned and adjusted for a long time. You should be more careful.
Sum of two numbers
Given an integer array num ...
Added by johnnycsh on Mon, 10 Jan 2022 07:23:16 +0200
The method of converting string to byte, hexadecimal number to decimal and exporting data to excel format in C + +
In a recent experiment, I need to collect sensor data. My method is to save the data to TXT file through serial port assistant, and then write a processing program for corresponding data processing operations. There are two main problems: string to byte type and hexadecimal to decimal. After the problem is solved through query, make a record he ...
Added by chowwiie on Mon, 10 Jan 2022 06:48:54 +0200
[C + + elementary learning] stack / queue / priority_ Use and Simulation of queue
Zero. Preface
This chapter mainly explains the container stack, queue and priority in C + +_ Queue (priority queue, equivalent to heap in data structure), which is simulated after being familiar with the use
1, Introduction and use of stack
1. Introduction to stack
stack is a container adapter, which is specially used in the ...
Added by alego on Mon, 10 Jan 2022 03:44:36 +0200
Linux system programming - (pthread) thread use cases (separating properties, cleaning functions, etc.)
This article introduces the creation and basic use cases of threads under Linux, mainly case code; The related functions have been introduced in detail in the previous article.
1. Case code: thread creation
The following code demonstrates how to create a thread. You need to add - lpthread when compiling
Function prototype:
#include <pthr ...
Added by davser on Sun, 09 Jan 2022 16:26:58 +0200
Introduction to dynamic memory functions (malloc, free, calloc, realloc)
Some recent knowledge is shared ~ as follows:
Stack area usually stores: local variables, parameters, and static space.The space requested by malloc, free, calloc and realloc is usually placed in the heap.Static declarations are usually placed in static storage.
The following describes several dynamic memory functions:
1.malloc function and f ...
Added by johnc71 on Sun, 09 Jan 2022 15:11:56 +0200