Kids learn Java (6): encapsulation
Object oriented has three characteristics: Encapsulation, Inheritance and Polymorphism.
This section covers encapsulation.
Procedure 1
class Woman {
private String name;
private int age;
private Man husband;
public void setName(String name) {
this.name = name;
}
public String getName() {
return ...
Posted by thehigherentity on Sun, 19 Jul 2020 08:51:28 -0700
Reading notes on the way of code neatness
Why keep your code clean?
Tall:
Software quality is not only dependent on architecture and project management, but also closely related to code quality, which is directly proportional to its cleanliness.
Software quality < = > code quality < = > cleanliness.
If software is compared to a g ...
Posted by falcons on Tue, 23 Jun 2020 00:13:29 -0700
[random recording in laboratory] Based on stm32 to collect Adc and store SD card
miscellaneous
order
laboratory
brief introduction
Called resource: Adc
Calling peripheral: SD card
Implementation process
Adc
SD card
Main function code
order
This article introduces the adc acquisition and SD card storage based on STM32F4
laboratory
The requirement of the seniors is to ...
Posted by cordoprod on Sun, 21 Jun 2020 03:57:16 -0700
Uboot 1.3.4 learning notes uboot configuration process
/mkconfig file analysis:
Six important parameters of mkconfig script:
Configure in the main makefile file:
x210_sd_config : unconfig
#$(@:_ config =) for the target_ config is replaced by "" to get x210_sd
@$(MKCONFIG) $(@:_config=) arm s5pc11x x210 samsung s5pc110
#Output TEXT_BASE variab ...
Posted by jtapoling on Fri, 19 Jun 2020 22:28:33 -0700
C language: rookie tutorial - structure
Rookie tutorial - C structure
The C array allows you to define variables that can store items of the same type,
Structure is another user-defined available data type in C programming,
It allows you to store different types of data items.
Structure is used to represent a record,
If you want to track the ...
Posted by jasonyoung on Tue, 09 Jun 2020 22:36:41 -0700
Sorting algorithm -- bubble sort
Algorithm definition:
Bubble Sort is a simple sort algorithm in the field of computer science.
It repeatedly visits the element columns to be sorted, and compares two adjacent elements in turn. If the order (such as from large to small, and the first letter from Z to A) is wrong, it exchanges them. The work of visiting elements is repeated unti ...
Posted by saint959 on Mon, 01 Jun 2020 04:47:15 -0700
strlen old bottle new wine
Introduction - overview of strlen
I accidentally scan the code in glibc strlen.c, which I can't forget for a long time. I also remember the starting point in my unknown programming career:
Programming is not a joke, some are difficult, some are reluctant to give up. Review with the track, once the most familiar feeling of strlen~
/* Copyright ...
Posted by jtrost on Fri, 29 May 2020 06:52:45 -0700
UITableView to modify the font size of its own retrieval column
�
UITableView can't be modified by using its own retrieval column. How to modify it?
Get UITableViewIndex before HeaderView will display
-(void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
for (UIView *view in [tableView subviews]) {
if ([view isKindOfClass:[NSClassFromStr ...
Posted by steveh62 on Sat, 23 May 2020 08:07:25 -0700
C language simple greedy snake learning
Just finished learning C language, I want to write a small project to consolidate the basic knowledge and lay a solid foundation for the next step of learning. Then I began to look for projects that can be done in the major websites and blogs, and finally I chose the snake eating game, most of which are called library functions, without the use ...
Posted by loki1664 on Wed, 20 May 2020 08:33:06 -0700
Static display of common cathode digital tube
Schematic diagram of nixie tube circuit
Hardware implementation principle
1. Circuit analysis
Firstly, the data is latched by M74HC573MIR latch. Firstly, the segment code is output by Y7C enable terminal, and the bit code is output by Y6C enable terminal. The resistance here plays a role of current limiting.
2. Digital tube analysis
Common ...
Posted by phatpappy on Tue, 19 May 2020 08:19:59 -0700