EIE2111 Lab 4: Control Statements (Part 2)C/C++

C 语言中的弱符号链接(Weak Symbol Linking) 弱符号(Weak Symbol)是ELF工具链支持的机制,允许函数或变量提供默认实现,若存在强符号则优先使用强符号。它在库设计、内核开发中广泛用于可选功能和默认行为。通过__attribute__((weak))声明,链接器在冲突时选择强符号,无强符号时保留弱符号。工具如nm可查看符号类型(如W表示弱符号)。该机制在Linux内核中用于架构特定实现覆盖通用逻辑。相比C语言的弱符号,Rust的EII通过编译器检查避免链接歧义,提升安全性。实验验证可直观理解其工作原理。 阅读详情

Java Python Department of Electronic and Information Engineering

EIE2111 Lab 4: Control Statements (Part 2)

Introduction

This laboratory exercise is designed to give you hand-on experience in Control Statements (Part 2).

Questions

1.   Write a program that uses a for statement to calculate and print the average of several integers. Assume the last value read is a sentinel value of-100.

2.   Write a program that uses a for statement to find the smallest integer among several integers. Assume that the first value read specifies the number of integers remaining. Note that the first number is not one of the integers to compare.

3.   Write a program that uses for statements to print the following patterns. Note that all asterisks (*) should be printed by a single statement of the form cout << '*'.

[Hint:

a.   You should print each pattern sep EIE2111 Lab 4: Control Statements (Part 2)C/C++ arately at the beginning and then combine them together after that.

b.   The last two patterns require that each line begin with an appropriate number of blanks.]

4.   Calculate the value of π from the infinite series below:

 

Print a table that shows the approximate value of π in the first  1,000 terms of this  series. The approximation should be printed after each  100 terms (i.e., 100th  term, 200th  term, and so on until 1000th term.)

5.   Combine the above four programs into one. The following is the sample output:

Instructions

a.  You are required to submit your C++ programs (the whole projects created in Microsoft Visual Studio 2019) in Question 5 to Blackboard. Zip all of them into a single file.

b.  The deadline of the submission: Check the course information.

c.  It is not required to create any classes or header files for the above exercises. It is fine if all program codes are in the main program         

C++零开销抽象实战:走读 FlashAttention-2 核心源码,看编译期特化与寄存器复用如何打破显存 在 A100 上跑原生 FlashAttention-1,Tensor Core 算力利用率常年停在 25% 到 40% 的区间;到了 FlashAttention-2,同样的 FP16 矩阵乘运算,利用率直接跃升到 50% 至 73%,在计算图没有少乘一个元素的前提下实现了 2 倍的端到端吞吐提升。 阅读详情

相关推荐

ApacheCordova 13使用浏览器实现下载功能

Apache Cordova 13中,可通过HTML <a> 标签或JavaScript动态创建链接实现文件与图片下载。使用 download 属性可触发浏览器下载,图片可保存至相册。客户端通过 fileDownload 函数封装下载逻辑,服务端通过 File 方法返回文件流并指定类型与名称。适用于安卓应用中文件、图片的下载需求。

天马3798 73

EIE2111 Lab 3: Control Statements (Part 1)C/C++

(Partwhile(thesumofdigitplus7)modulus10nis writtenn!eexCheckthecourse。

aboutyou2的博客 1590

电池管理系统(BMS)系列—状态估计之SOH

BMS系列文章,介绍了SOH估计

zxx52113140的博客 1853

C语言每日知识点 Day 02:数据类型与 sizeof

的:按模 2^8 回绕,结果是 0。但。

Clock77582481的博客 220

SAP SM30数据维护实战:条件筛选与动态校验的实现技巧

本文详细介绍了SAP SM30数据维护的实战技巧,重点讲解如何通过条件筛选实现精准数据查取,以及利用表维护生成器事件实现动态数据检查与校验。文章提供了从基础视图创建到高级事件编程的完整流程,包括调用函数VIEW_MAINTENANCE_CALL传递筛选条件,以及在NEW_DATA和CHANGE_SAVE事件中编写业务规则校验逻辑,帮助开发者提升SM30的管控能力与数据质量。

q9w8e7r6t5的博客 524

Windows 2012 SYSVOL复制失败的处理

题外话:晓原理、知架构、查日志是排错的三件法宝今天在DC1上新建并链接了一个组策略对像,在客户端刷新时,却报下面的错误:“处理组策略失败。Windows无法应用组策略对象LDAP….”如下图所示:于是在客户端用\\domain.com访问,发现\\domain.com\SYSVOL\domain.com\policies下面没有上面报错的组策略对象。这是怎么一回事呢,pin...

weixin_33989780的博客 1675

C语言条件宏定义导致的隐藏bug

同一个宏定义可能在不同的.o文件中表示不同的值,而且因为宏定义是在预编译阶段的文本替换,所以 连接时即便相同的宏定义值不同也无法发现错误。代码在运行时这个数组的实际分配长度就是10,但是在IAR仿真时,监视到的数组长度是20,这是IAR仿真功能的bug。运行代码可以看到同一个宏在不同的.c文件打印值不一样,这是因为条件宏的条件对不同c文件的可见性不一样。不同的c语言编译器在这个问题上结果是一样的。但是,IAR在仿真时会出现仿真看到的数组长度为20,但是实际长度为10的情况。

qq_40438388的博客 54

用C#+Avalonia写跨平台串口工具:Windows/macOS/Linux通吃,还能解析Modbus+画实时曲线

不管是串口还是蓝牙,核心操作都是“打开连接、发数据、收数据、关连接”,先定义一个// 通信设备接口:统一串口/蓝牙的操作// 连接状态变化事件(UI层订阅)// 接收数据事件(收到数据后触发)// 通信配置(不同设备配置不同,用泛型)// 通信设备接口:统一串口/蓝牙的操作 public interface ICommDevice : IDisposable {// 连接状态变化事件(UI层订阅) event Action < bool > OnConnectionChanged;

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 1003

eventpp: 一款纯 Header-Only的高性能C++事件库

eventpp是一款纯Header-Only、零依赖的高性能C++事件库,支持C++11及以上,兼容多平台。核心组件包括CallbackList(同步信号槽)、EventDispatcher(事件分发)和EventQueue(异步队列),均提供线程安全机制与优异性能。通过模板策略可灵活配置线程安全级别,支持多生产者-多消费者模式及批量优化。虽原生不支持返回值聚合,但可通过输出参数、forEach遍历或promise/future等方案实现。适用于解耦组件、跨线程通信等场景,是Qt信号槽的轻量高效替代,尤其在

红军不怕远征难,万水千山只等闲 353

AI提示词注入绕过工具:一键绕过Codex/Claude安全限制,CTF夺旗与渗透测试必备神器

【摘要】codex-session-patcher是一款专为CTF选手设计的AI会话修复工具,能智能处理AI的拒绝回复问题。核心功能包括:两级拒绝检测策略、AI智能改写回复、批量清理会话记录、推理内容擦除与备份还原,并支持Codex/ClaudeCode/OpenCode三大平台。工具提供CLI和WebUI两种操作方式,支持CTF提示词注入和工作空间管理,可显著降低AI拒绝率。最新版本优化了CTF模板加载机制,修复了路径漂移等问题。典型工作流包含安装CTF配置、专用环境启动、会话清理和恢复对话等步骤,帮助安

Chengbei11的博客 3466

YOLOv8进阶:SEAM注意力与Repulsion Loss双剑合璧,突破遮挡检测瓶颈

做目标检测时,最头疼的莫过于目标被遮挡的场景——行人被树木挡住一半、车辆被广告牌遮挡部分轮廓……这些情况往往让模型“犯迷糊”。但现在,有了SEAM注意力模块和Repulsion Loss排斥损失,我们就能让YOLOv8在遮挡场景下也能“拨开迷雾见真章”。这篇教程会带你一步步理解这两个技术,并亲手把它们融入YOLOv8,让你的检测模型在复杂场景下也能稳如泰山。

FJN110的博客 237

PaddleOCR与PyQt 界面综合案例

本项目基于PaddleOCR与PyQt5实现流水线标签实时识别系统,通过摄像头采集画面,结合置信度过滤(≥0.7)、正则格式筛选及三帧投票策略,有效降低单帧误识别,提升结果稳定性。系统采用模块化设计,实现“采集—识别—标注—统计”全流程可视化,界面简洁,响应实时,具备良好可扩展性,适用于工业场景中的自动化标签识别需求。

2302_80153357的博客 424

MATLAB 车牌识别系统

车牌识别系统利用计算机视觉和图像处理技术,自动识别车辆牌照上的字符信息。本系统基于 MATLAB 实现车牌识别,包括图像预处理、车牌定位、字符分割、字符识别等模块。车牌识别系统是实现智能交通和公共安全的重要手段,具有广泛的应用前景。MATLAB 提供了丰富的工具和函数,可以方便地进行算法仿真和系统开发。

走向CTO的路上... 819

滤波是什么:限幅、滑动平均、中位值、一阶低通怎么选?嵌入式传感器滤波算法原理与C源码

滑动平均、中位值、一阶低通——名字有一长串,选错一个,控制环就可能开始振荡。为什么"平滑"和"滞后"是同一件事?为什么有的滤波越调越玄,问题却根本不在信号里?动手之前,先回答三个问题。

Lxx_Zw的博客 311

NX二次开发PK获取对象类型

PK_ENTITY_ask_class(),获取对象类型建议用这个函数,比较通用,包含所有对象类型,可以替代UF_MODL_ask_edge_type(),UF_MODL_ask_body_type(),UF_MODL_ask_face_type()等函数。

qq_39541524的博客 830

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

C++高性能日志库spdlog实战指南:从入门到异步编码实战

SpdLog是一款高性能、跨平台的C++11日志库,采用Header-Only设计,支持异步日志、多线程安全、彩色输出及文件滚动等特性。其架构基于Logger/Sink/Formatter三层模型,灵活可扩展。通过fmt风格格式化与自定义Pattern,实现高效安全的日志输出。支持多种Sink,可轻松集成至项目中,广泛应用于高性能服务开发。

程序员与背包客_CoderZ 200

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

C++13_stack和queue

本文梳理C++栈与队列的核心接口与常见误区,强调“口子越少,越需外部记录信息”的设计哲学。通过四道典型题目(最小栈、栈的弹出序列、后缀表达式、层序遍历),揭示共性套路:当容器仅开放有限接口时,被隐藏的信息必须通过额外空间(如辅助栈)自行维护。重点澄清top()/front()区别、pop()不返回值、getMin()需预存最小值等关键点,提醒避免空栈访问与未定义行为。

lemo_n_的博客 249

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

C++初始化`Widget b = a;` 调用的是拷贝构造函数,不是 `operator=`

在C++中,Widget b = a; 的 = 不是赋值运算符,而是拷贝初始化语法,用于声明并初始化新对象。由于 a 是 lvalue,编译器选择调用拷贝构造函数,而非 operator=。若未定义 operator=,代码仍可编译,反证其走的是构造函数路径。C++17起,prvalue初始化会保证拷贝消除,故无构造调用。核心判断标准:= 是否出现在声明语句中——是,则调用构造函数;否,则调用 operator=。

jimy1的博客 181

C++ 数据结构与算法面试总结:核心知识点、手撕模板与高频考点

数据结构与算法面试,最重要的是建立问题与数据结构之间的映射关系。需要快速查找:考虑哈希表。需要维护最近使用:考虑 LRU。需要求窗口最值:考虑单调队列。需要寻找下一个更大元素:考虑单调栈。需要处理连通性:考虑 DFS、BFS 或并查集。需要处理依赖关系:考虑拓扑排序。需要处理最优子问题:考虑动态规划。需要查找有序数据:考虑二分查找。需要获取 TopK:考虑堆。需要维护有序集合:考虑红黑树或跳表。

zengjiajun2006的博客 1205

新号别搞:C++_多态

菱形继承与虚继承:在多重继承中(如 B 和 C 继承 A,D 继承 B 和 C),B 和 C 会各自包含一份 A 的拷贝,导致 D 中存在两份 A 的二义性。解决方案是使用虚继承(class B : virtual public A),保证公共基类在内存中只有一份。或作为函数参数按值传递),派生类独有的部分会被切掉,多态失效。必须使用基类指针或引用才能保持多态。避坑指南:如果直接用派生类对象调用虚函数,即使加了 virtual,也会退化为静态绑定(编译期确定),无法实现多态!虚函数靠虚函数表实现动态绑定。

2602_95722733的博客 245

c++ constexpr 关键字

constexpr。

拒绝AI文,努力在AI时代写出感动人心的好文章 388

C++ 实现 AVL 平衡二叉搜索树:插入逻辑与四种旋转全解析

AVL树是一种自平衡二叉搜索树,通过维护节点平衡因子(左右子树高度差≤1)确保插入、查找、删除操作时间复杂度稳定在O(logN)。本文详细解析了AVL树的节点结构、插入流程及四种旋转机制:右单旋(LL)、左单旋(RR)、左右双旋(LR)和右左双旋(RL)。关键在于自底向上更新平衡因子,并在失衡时通过旋转恢复平衡。代码实现中强调父指针维护与双旋时平衡因子的精准更新,适用于查询密集型场景,但频繁增删时性能不如红黑树。

2603_95129722的博客 339

C++符号冲突与内部符号优先策略详解

本文系统解析C++符号冲突的四大场景,重点阐述通过作用域优先、命名空间隔离与内部链接机制实现内部符号优先。利用局部变量屏蔽全局、匿名命名空间限制可见性、static与using声明控制访问,结合动态库符号隐藏与命名空间封装,可有效避免跨文件、跨库符号冲突,确保用户代码内部符号被优先使用,提升大型项目可维护性与可靠性。

bkspiderx的博客 358

c语言:预处理 宏#define

注意:宏里面可以使用别的宏,但是不可以使用自己,否则会出现死循环。参数预扫描:先看全部代码里面,有没有宏定义里面的变量,有没有别的#define宏,不过优先处理参数里面的宏。#ifndef/#deine/#endif和#pragma once。后者先在自己写的代码里面找头文件,如果找不到再在系统里面找头文件。它是看DEBUG是真是假,如果是1的话就打印,是0的话就不打印。再次扫描:替换完成的新代码,再从头扫一遍,还有宏就重复展开。前者是直接在系统,标准库里面找头文件,不看自己写的代码块。

Code_Solitude的博客 173

C 语言冒泡排序完整拆解:交换次数为什么正好等于逆序对数

它不会让程序报错,输出看着也完全正常,但会在需要按原始次序处理等值元素的场景(比如多关键字排序的次关键字、数据库的稳定排序)里给出错误结果。这就是第 5 行和第 6 行完全相同的原因:第 4 趟(i=4)一次交换都没发生,数组和上一趟一模一样,但它还是被打印了出来。本文第 1 趟的交换发生在 j=2(11 与 4)和 j=3(11 与 1),最后一次是 j=3,交换后数组是。第 i 趟结束后,数组末尾的 i+1 个元素已经是全局最大的 i+1 个,且处于最终位置。这段程序能跑对,但离"能进项目"还差不少。

2301_80380063的博客 646

IP5381至为芯支持3路C口140W双向快充新国标移动电源方案芯片

IP5381_G2是一款用于新国标移动电源,充电宝方案的移动电源管理SOC芯片,支持1-6节锂电池配置,集成PD3.2/QC/UFCS等主流快充协议,140W双向快充,8A充电电流,35V输入耐压。通过新国标合规认证,Flash掉电存储:电池 SN、生产时间、电压温度、故障日志;USB2.0全速和PC通信,可读日志、溯源等。提供1A+3C双向快充等多种接口组合。

2501_92525625的博客 213
上一篇: Digital Creative Challenge 3 (DCC3)
下一篇: data MATLAB
普通网友
博客等级 码龄2年 226粉丝 29原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值