Day 100: How to Read and Analyze C Language Open Source Projects

Day 100: How to Read and Analyze C Language Open Source Projects

Last Session Review: The previous lecture systematically organized the testing and assertion practices in C language, covering the selection of automated testing frameworks, best practices for assertions, and the processes, structures, and tools for implementing Test-Driven Development (TDD) in C projects, emphasizing the engineering strategies of “test-first, automation, mock isolation, and boundary exception coverage.” 1. … Read more

In-Depth Analysis of GESP Certification C++ Level 1 Questions (Multiple Choice Part 2)

11、The following C++ code is used to find the mirror number of N (the digits of N are reversed from the least significant to the most significant, but leading 0 will be ignored and not output), for example, if the input is 1234, the output will be 4321 , and if the input is 120, … Read more

The First C++ Program: Hello, World!

It is a classic introductory example for learning any programming language, with a simple function: outputting a line of text to the screen: Hello, World! ✅ 1. C++ Hello World Program Code Below is a complete C++ first program that you can run on your computer: #include <iostream> // Include input-output stream library int main() … Read more

Implementation of Assembly Instruction Obfuscator

Previously, I encountered many obfuscation techniques such as junk instructions, instruction bloat, and virtual machines while unpacking. I wanted to try creating a similar obfuscator. Thus, the idea of writing an instruction obfuscator came to mind. Initially, I intended to write an obfuscator that directly obfuscates and expands opcodes, which is quite challenging. This includes … Read more

C++ Learning Manual – Basic Syntax of C++: Hello World Program Analysis

C++ Learning Manual - Basic Syntax of C++: Hello World Program Analysis

When learning any programming language, the first program is usually the classic **”Hello, World!”**. It not only helps you verify that your development environment is set up correctly but also gives you a preliminary understanding of the basic syntax structure of C++. This article will provide a detailed analysis of a simple C++ Hello World … Read more

C Language Exercises – Day 15

C Language Exercises - Day 15

01 Read the following program: main() { int a=1, b=3, c=5; int *p1=&a, *p2=&b, *p3=&c; *p3=*p1*(*p2); printf(“%d\n”,c); } The output result after execution is A) 1 B) 2 C) 3 D) 4 Answer: C Analysis: Brief 02 To write a good program, it is essential to ensure its correctness and reliability, and also to emphasize … Read more

Cross-Script Interface Association and Parameter Passing in HttpRunner3

Cross-Script Interface Association and Parameter Passing in HttpRunner3

Cross-Script Interface Association and Parameter Passing in HttpRunner3 The parameterization in HttpRunner3 utilizes the Pytest decorator @pytest.mark.parametrize(). 1. Scenario Description In the example from Baidu, the parameter passing for parameterization was not mentioned, so I will briefly describe the scenario here. For instance, the interface in A.py depends on the return value of the interface … Read more