C + + implementation of addition and subtraction of arbitrary binary long integers
The first small project after learning C + + refers to some good codes on the Internet. A and a in any binary system are regarded as a number, so the highest 36 binary system, but it is also easy to change this small place to 10 + 26 + 26 binary system.
Firstly, the addition and subtraction of decimal long integers are realized. Since they are ...
Posted by superhoops on Mon, 20 Sep 2021 02:13:24 +0200
STL learning notes string
STL learning notes (I) string
c_str()
const char *c_str();
c_ The str() function returns a pointer to the normal C string, with the same content as this string
string s="123"
printf("%s",s.c_str())
Add: insert()
iterator insert( iterator i, const char &ch );
basic_string &insert( size_type index, const basic_string & ...
Posted by derrick24 on Sun, 19 Sep 2021 20:41:52 +0200
[dark horse programmer C + + tutorial introduction to programming from 0 to 1] [Note 1] data type, operator, program flow structure, array, function, pointer and structure
Dark horse programmer's ingenuity | C + + tutorial starts programming from 0 to 1. Learning programming is no longer difficult
1. C + + Beginner
1.1 the first c + + program
#include <iostream>
using namespace std;
int main() {
cout << "hello" << endl;
system("pause");
return 0;
}
result:
hello
1.2 notes
Singl ...
Posted by hopelessX on Sun, 19 Sep 2021 16:19:41 +0200
10018. Jinjin's savings plan
Jinjin's pocket money has always been managed by itself. At the beginning of each month, my mother gives Jinjin 300 yuan. Jinjin will budget the expenses of this month, and always achieve the same actual expenses as the budget. In order to let Jinjin learn how to save, her mother proposed that Jinjin could deposit 100% of her money at any time, ...
Posted by mmj on Sun, 19 Sep 2021 15:08:47 +0200
Roson talks about the ComboBox of Qt#29 Quick Controls 2 (drop-down list box)
1. Concepts
ComboBox is a combination of buttons and pop-up lists. It provides a way to display a list of options to the user, which takes up the least screen space. ComboBox is populated with data models. Data models are usually JavaScript arrays, ListModel s, or integers, but they also support other types of data models.
ComboBox {
x:200
...
Posted by Az_Critter on Sat, 18 Sep 2021 05:38:58 +0200
C + + dynamic memory allocation
Transferred from: https://www.cnblogs.com/yingying0907/archive/2012/07/31/2616975.html
1. Heap memory allocation:
C/C + + defines four memory intervals: Code area, global variable and static variable area, local variable area, i.e. stack area, and dynamic storage area, i.e. heap area or free store area. Concept of heap: A variable (or object) ...
Posted by fredted40x on Sat, 18 Sep 2021 00:01:24 +0200
Data structure - stack and queue
Link, data structure - stack and queue (2) stack Data structure - stack and queue (II) stack
data structure
Stack and queue (II) queue
Mind map
3.2.1 basic concept of queue
1. Concept
A Queue is a linear table that can only be inserted at one end and deleted at the other end
Queue is a special linear structure. It only allows de ...
Posted by mdnghtblue on Fri, 17 Sep 2021 21:50:53 +0200
C + + array and array name problems (pointer, dereference)
1, Pointer
1.1 difference between pointer variable and ordinary variable
Pointer: the essence of pointer is a variable. It has no essential difference from ordinary variables. Pointer integrity should be called pointer variable, referred to as pointer. It means pointing. The pointer itself is an object, and the pointer does not need to be ...
Posted by MarcAndreTalbot on Fri, 17 Sep 2021 04:52:07 +0200
Detailed use of basic functions of ROS system (basic instructions / nodes / services / startup files / dynamic parameters)
1, Create workspace
1. Create a new folder Create a new catkin_ws folder and create src subdirectory in it.
mkdir -p ~/dev/catkin_ws/src
cd ~/dev/catkin_ws/src
2. Initialize workspace In the src subdirectory just created, use the following command to create a workspace, but there is no function package in the workspace at this time, onl ...
Posted by youqing on Fri, 17 Sep 2021 02:30:54 +0200
2021-09-04 learning record of C++ Primer: Chapters 4, 5 and 6
Chapter 4 expressions
4.1 Foundation
4.1.1 basic concepts
Function call is also a special operator, which has no limit on the number of operands.
(1) Left and right values
Simple induction: when an object is used as an R-value, the value (content) of the object is used;
When an object is used as an lvalue, the identity (location in me ...
Posted by jenp on Fri, 17 Sep 2021 00:55:03 +0200