Tour C language tutorial 5 - conditional statements
Tour C language tutorial 5 - conditional statements
This is the fifth tutorial of traveling around C language. You will understand conditional statements in this article.
condition
The condition is to judge whether the statement is true. In C language, 0 means not true, which is false in logic, and non-0 means true, which is true in logic. F ...
Added by kornlord283 on Mon, 31 Jan 2022 08:08:48 +0200
05 functions and namespaces | getting started with Python
function
A function is a code segment that implements a certain function. It passes in parameters and returns values.
Python built-in function len, pass it a list, and it will return the length of the list (return value); The print function prints the incoming object to the screen. It does not return any value. We say it returns None; The ret ...
Added by donnierivera on Mon, 31 Jan 2022 05:35:36 +0200
14 object oriented 03.2 -- object oriented polymorphism
polymorphic
1. Concept
Polymorphism is an important feature of object-oriented programming (OOP). It refers to that the same entity has multiple forms at the same time, that is, the same object represents different objects at different times. It refers to multiple forms of objects.
Different subclass objects can be regarded as parent cla ...
Added by john8675309 on Mon, 31 Jan 2022 02:13:59 +0200
The use of Fragment in Android case -- Sichuan cuisine menu
The use of Fragment in Android case -- Sichuan cuisine menu
This case will demonstrate how to display two fragments in one Activity (one Fragment is used to display the list of Sichuan cuisine and one Fragment is used to display the practice of Sichuan cuisine), and realize the communication function between Activity and Fragment
1. Preparati ...
Added by flumpy on Mon, 31 Jan 2022 01:07:48 +0200
C + + thread learning
1. Simple use of thread
#include <iostream>
#include <thread>
#include <Windows.h>
using namespace std;
void thread01()
{
for (int i = 0; i < 5; i++)
{
cout << "Thread 01 is working !" << endl;
Sleep(100);
}
}
void thread02()
{
for (int i = 0; i < 5; i++)
{
cout << "Thread 02 is working !" ...
Added by robinas on Mon, 31 Jan 2022 00:18:41 +0200
[JVM] StringTable - string constant pool
1. StringTable
StringTable location of different JDK versions
1.1 basic characteristics of string
String string, represented by a pair of "".The String class is declared as final and cannot be inheritedString: implements the Serializable interface: indicates that the string supports serialization, and implements the Comparable int ...
Added by prometheos on Mon, 31 Jan 2022 00:12:14 +0200
Thoughts caused by Android sensitive data disclosure
1. The whole story
One cool afternoon, I saw a news that the interface was being mechanically called. I suspected that someone was using script to brush the interface (mainly to divert water from the platform).
what? No, the general interface request is encrypted. Unless you know the encryption key and encryption method, the call will not ...
Added by iHack on Sun, 30 Jan 2022 23:01:34 +0200
Virtual machine class loading mechanism - class loader
The Java virtual machine design team intends to implement the action of "obtaining the binary byte stream describing a class through the fully qualified name of a class" in the class loading stage outside the Java virtual machine, so that the application can decide how to obtain the required class by itself. The code that implements t ...
Added by clicket on Sun, 30 Jan 2022 22:13:53 +0200
C + + Basics
Basic knowledge of C + + (I)
1. Foreword
👉👉 In 1979, C + + was born and sprouted. In 1983, it was officially renamed C + +, Benjani Strauss LUP (Bjarne Stroustrup). C + + can carry out both process oriented programming in C language and object-oriented programming (encapsulation, inheritance and polymorphism) in Java language. It ...
Added by sorenchr on Sun, 30 Jan 2022 21:43:42 +0200
Spring summary and configuration file
outline
·In 2002, the prototype of Spring framework was launched for the first time: interface21 framework!
Spring is an open source free framework (container)!Spring is a lightweight, non intrusive framework!Inversion of control (IOC), aspect oriented programming (AOP)!Support transaction processing and framework integration!
IOC ...
Added by binit on Sun, 30 Jan 2022 21:13:09 +0200