Basic operators and exercises of C language
For decimal system, for example, 1234.5 = 1 * 10 ^ 3 + 2 * 10 ^ 2 + 3 * 10 ^ 1 + 4 * 10 ^ 0 + 5 * 10 ^ - 1 (sum by weight expansion).
○ 1 other hexadecimal to decimal systems are summed according to weight expansion, such as hexadecimal 0x123=1*16^2 + 2*16^1 + 3*16^0
○ 2 decimal to other base systems: integer part: Radix division and remainde ...
Posted by rossh on Wed, 17 Nov 2021 03:49:54 -0800
[programming art] analysis of darknet load_weights interface
Welcome to my official account, reply to 001 Google programming specification. O_o >_< o_O O_o ~_~ o_O this paper analyzes darknet load_weights interface, which is mainly used to load model weights.1. darknet data loading process The previous article has introduced the data loading process of darknet target ...
Posted by VisionsOfCody on Wed, 17 Nov 2021 03:16:35 -0800
Java foundation -- Inheritance and polymorphism
catalogue
1, Package
1. Import classes in package
2. Static import
3. Access control of package
2, Inherit
1. Concept and usage of inheritance
2.protect
3. Summary
4.final
3, Polymorphism
1. Upward transformation
2. Dynamic binding
2.1 rewriting
2.2 difference between rewriting and overloading
3. Downward transformation
4.sup ...
Posted by IThinkMyBrainHurts on Wed, 17 Nov 2021 02:53:54 -0800
C language beginners project 200 lines of code, using a two-dimensional array to realize the snake game
C language beginner project: a two-dimensional array to realize the greedy Snake game
This article is for c Language beginners, so I try to use the most basic syntax to realize the whole game, and only use a two-dimensional array. The implementation process will be explained in detail below.
A two-dimensional array can be directly printed into ...
Posted by Zeekar on Tue, 16 Nov 2021 08:38:38 -0800
Learning notes of C language programming: P4 cycle
1, Circulation
1.1 cycle
Now I have a problem: the program reads in a positive integer with less than 4 bits (including 4 bits), and then outputs the number of bits of this integer. If input 352, output 3.
People's way: you can see it with your eyes. We can see that 352 is a three digit number at a glance. The way of computer: what the ...
Posted by pgrevents on Tue, 16 Nov 2021 07:46:14 -0800
Huffman coding (data structure tree, c language version)
Huffman coding (data structure tree, c language version)
1, Experimental topic
1) Initialization. Read in the weight of each character and establish HuffTree; 2) Code. Coding with the built Huffman tree; 3) Output. Display the established Huffman tree and the corresponding coding table;
1. Data structure
//----- storage representation of Hu ...
Posted by akrocks_extreme on Tue, 16 Nov 2021 06:20:09 -0800
Constructor and destructor of single inheritance derived class
#include <iostream>
#include <cstdio>
#include <cmath>
#include <climits>
#include <iomanip>
#include <windows.h>//
#include <iostream>
#define MAX(x,y) (x)>(y)?(x):(y)
#include <string.h>
using namespace std;
class A
{
public:
A()
{
a=0;
co ...
Posted by blackwidow on Tue, 16 Nov 2021 05:17:43 -0800
Some contents of file operation
Close file
fclose(fp);
fp=NULL;
Open file
FILE* fp=fopen("xxx.xxx","xx");
The first parameter is the type of file set
The second parameter has the following
operationeffectfile does not exist"w" (write only)To output data, open a text fileCreate a new file"r" (read only)To output data, open an existing fileerror&quo ...
Posted by aliento on Tue, 16 Nov 2021 01:35:56 -0800
Integration of structural knowledge points (Part 1)
Integration of structural knowledge points (Part 1)
Structural knowledge points (previous part)
(1) Declaration of structure type (2) Definition and reference of structure variables (3) Solution of structure size (4) Initialization of structure type (5) Definition and initialization of structure array
So why do you need a structure? Struct ...
Posted by moose4204l on Tue, 16 Nov 2021 00:13:31 -0800
cfadmin - write high-performance server and client instances
Reading this article requires readers to have at least a basic knowledge of C/C + + network programming and how to use the basic Socket API
At the same time, readers should have at least used cfadmin framework and be proficient in using built-in library to complete simple business logic writing
Students interested in this article can also Off ...
Posted by hash1 on Fri, 12 Nov 2021 20:29:31 -0800