Something new about C++11~
Introduction to C++11
In 2003, the C + + Standard Committee submitted a Technical Corrigendum (TC1) so that the name of C++03 has replaced the name of C++98 as the latest C + + standard before C++11. However, TC1 mainly fixes the loopholes in the C++98 Standard, and the core part of the language has not been changed. Therefore, people h ...
Posted by n1tr0b on Sun, 20 Feb 2022 16:10:53 +0100
Character array and string -- C language description
Character array and string -- C language description
1 character array
The character array is defined with the keyword char. The memory structure is sequential storage, as shown in Figure 1.1 below
char ch1[] = {'w', 'e'};
Figure 1.1 memory structure of character array
#include <stdio.h>
/*
Purpose:
1. Test character arr ...
Posted by gargoylemusic on Sun, 20 Feb 2022 15:27:40 +0100
C language game minesweeping [simple implementation]
preface
Mine sweeping game is to place a certain number of mines in a chessboard. Players can constantly eliminate mines to realize mine sweeping. If there is no mine nearby, they can eliminate a piece of chess pieces without mine nearby. If they encounter mine, the game will fail. If there is only mine left on the chessboard, mine clea ...
Posted by peterjoel on Sun, 20 Feb 2022 14:44:04 +0100
Draw line chart with Python
3. Optimization of line chart information and style
After the above line chart is drawn, the line chart of the current worksheet should be as follows:
There are some problems in this line chart: the information is fuzzy; It is unclear what data the X-axis and Y-axis describe; The style of line chart is not very beautiful.
Therefore, ...
Posted by bigc79 on Sun, 20 Feb 2022 14:30:44 +0100
Simple understanding of "Abstract abstract class" and "Interface interface" in Java“
First of all, we need to know that "Abstract class" and "Interface" are two mechanisms that support the definition of Abstract classes
1. Abstract abstract class
So what is an abstract class in Java?
In Java, due to polymorphism, a class can be inherited by multiple subclasses as a parent class. For example, the Student s ...
Posted by blacksnday on Sun, 20 Feb 2022 14:21:25 +0100
What is the difference between make and new in Go
This paper mainly introduces the use and difference between new and make in Go language. New and make are two built-in functions in Go language, which are mainly used to create allocated type memory. When we define the generated variables, we may feel a little confused. In fact, their rules are very simple. Let's illustrate their differences an ...
Posted by DaveM on Sun, 20 Feb 2022 12:31:10 +0100
Exception handling in Python
The art and Tao of Python Programming: an introduction to Python language Link to the video course "the art and Tao of Python Programming: an introduction to Python language": https://edu.csdn.net/course/detail/27845
exception handling
Errors detected during execution are called exceptions. Exceptions are events that can modify the ...
Posted by anhedonia on Sun, 20 Feb 2022 10:33:26 +0100
Rosalind Java| Calculating Protein Mass
Calculation of protein molecular weight for Rosalind programming problem.
Calculating Protein Mass
Problem In a weighted alphabet, every symbol is assigned a positive real number called a weight. A string formed from a weighted alphabet is called a weighted string, and its weight is equal to the sum of the weights of its symbols.
The standar ...
Posted by vtolbert on Sun, 20 Feb 2022 09:14:12 +0100
Detailed explanation of Lambda expression ~ simplify anonymous inner class
This section will introduce how to use Lambda expressions to simplify the writing of anonymous inner classes. However, Lambda expressions cannot replace all anonymous inner classes and can only be used to replace the abbreviation of Functional Interface. Don't care about the details yet. Let's look at a few examples.
Example 1: abbreviation of ...
Posted by jaql on Sun, 20 Feb 2022 05:04:17 +0100
C + + template primary
Initial stage of formwork
The initial stage of the template is understood from three aspects:
1. Generic programming
2. Function template
3. Class template
Generic Programming
If you use function overloading to operate on different data types, there are the following problems:
1. The code reuse rate is low. If a new type appears, you ...
Posted by Ph0enix on Sun, 20 Feb 2022 04:30:30 +0100