2021.12.5 simple minesweeping game implemented in c language

catalogue Overall idea: (test. C) (game. H) (game. C)  ) Step 1:   (game start interface) Step 2:   Initialize and print mine disk Step 3: lay lightning Step 4: mine detection   game .h   Document code summary: test .c   Document code summary: game .c   Document code summary: Try: For beginners, i ...

Posted on Tue, 07 Dec 2021 01:34:08 -0500 by akluch

ZBar Source Code Analysis--Window Module Resolution| 2021SC@SDUSC

2021SC@SDUSC Catalog I. Window Modules 2. Code Analysis zbar_window_redraw Brightness Sensing and Exposure Sensitivity tolerance Auto exposure and 18% gray gamma correction Window Layer Overlay 3. Summary I. Window Modules     To use ZBar for barcode recognition, the input can be a video stream or an image stream. In the ...

Posted on Sun, 05 Dec 2021 17:42:57 -0500 by gdure

C language (structure, structure alignment)

C language provides us with multiple built-in types, such as int, char, double... Which we often use, but in fact, built-in types can not solve all the complex problems in our life. For example, we need a student type, which includes class, grade, name... This is what a built-in type can do, and the definition of multiple built-in types is too ...

Posted on Sun, 05 Dec 2021 16:39:34 -0500 by gdrums

Classic of operating system | producer and consumer problems

1, Overview of producer consumer issues Description: two or more threads share the same buffer. One or more threads as a "producer" will constantly add data to the buffer, and the other or more threads as a "consumer" will take data from the buffer. Note the following: Producers and consumers must use buffers that ar ...

Posted on Sun, 05 Dec 2021 13:33:42 -0500 by gingerboy101

Swig super detailed introductory tutorial (Python 3 calls C/C++, CMake) -- updated on December 2021

Bloggers have stepped through many holes, many tutorials are built by Visual Studio (non CMake project), many tutorials are Python 2, and some common errors (mainly from environment configuration problems). This article is mainly to teach Mengxin how to build with official use cases (there are many bloody and tearful histories of stepping o ...

Posted on Sun, 05 Dec 2021 08:26:35 -0500 by Yves

ucOS file migration based on C8T6 core board

preface uC/OS is a scalable, preemptive, real-time multitasking kernel that can run based on ROM. it is highly portable. It is especially suitable for microprocessors and controllers. It is suitable for many real-time operating systems (RTOS) with comparable performance of commercial operating systems. The programs we wrote in the ...

Posted on Sat, 04 Dec 2021 17:46:57 -0500 by guybrush

[C language] Sanzi chess

Mind map tic-tac-toe Create three files 1. Create the main operation file (test.c) 2. Create a game running file (game.c) 3. Create a global variable header file (game.h) First, reference the header file 1. Introduce header file in (game.h) #include <stdio.h> 2. Create the main function in (game.c) int main() { return ...

Posted on Sat, 04 Dec 2021 13:55:27 -0500 by symantec

[operating system disk scheduling algorithm] OS experiment C language code to realize FCFS/SSTF/SCAN/CSCAN

preface   this paper implements four disk scheduling algorithms FCFS/SSTF/SCAN/CSCAN in C language. It provides manual input of track number and random generation of track number. The output is the track number accessed at each step, the moving distance at each step and the average moving distance.    in addition to the consiste ...

Posted on Fri, 03 Dec 2021 15:12:18 -0500 by Archy

Learning Chain List Relevance

Catalog 1. What is a linked list   2. Creating a static single-chain table   3. Creating dynamic single-chain lists 1. About Initialization 2. About memory allocation: 3. Storage of structural addresses Establishing Single Chain List by Tail Interpolation Head Interpolation for Single Chain Table 3. Addition, deletion, examin ...

Posted on Fri, 03 Dec 2021 14:26:08 -0500 by gio2k

Stand alone container network

Based on linux kernel 5.4.54Yesterday I shared the principle of veth:veth principle -- the sending and receiving path of data packets when two containers communicate through vethGenerally, containers do not communicate directly through veth, but through docker0 bridgeToday, analyze the communication path of the container through veth and docker ...

Posted on Fri, 03 Dec 2021 05:59:53 -0500 by mulysa