Category: c language

[C language] Summary of custom types 0

[C language] Summary of custom types

Hits: 0custom type 1. Structure 1.1 Declaration of Structure 1.2 Self-reference of structures 1.3 Initialization of structure variables 1.4 Memory Alignment and Size Calculation of Structures 1.5 Why does memory alignment exist❗️❗️ Second, the...

The usage of structure struct in C language 0

The usage of structure struct in C language

Hits: 0define [structure] variable The following is an example to illustrate how to define a structure variable. struct string { char name[8]; int age; char sex[2]; char depart[20]; float wage1, wage2, wage3, wage4, wage5;...

The quick sorting method is taken from a big guy 0

The quick sorting method is taken from a big guy

Hits: 0#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> //define the global variable,this two variable needed to be used in the subfunction. int a[101], n; void quicksort ( int left, int right) { int i, j, t, temp;...

String rotation – C language 0

String rotation – C language

Hits: 0 About the author: The blogger is studying for a double non-undergraduate degree in accounting and is currently a sophomore. He is learning JAVA, database, operating system, computer network, data structure, JAVA Web,...

Simple shutdown program (C language) 0

Simple shutdown program (C language)

Hits: 0The Windows system comes with a program named [Shutdown.exe] , which can be used for shutdown operations (located under Windows\ System32 ). Generally, the shutdown of the Windows system can be achieved by...

Simple login operation in C language 0

Simple login operation in C language

Hits: 0Write code to simulate the user login scenario, and only log in three times. To achieve this, we need to set a [string] arr1 to store the password, and also manually enter a...