搜索结果

找到约 65 项符合 break 的查询结果

源码 C++1000以内的素数

#include<iostream> using namespace std; int s=0;  int prime(int x){ int i,p=1; for(i=2;i<=x/2;i++){ if(x%i==0){ p=0; break; } } if(p!=0){ cout<<x<< " "; s++; } }  int main(){ for (int k=5;k<=100;k++){ prime(k); if(s%5==0) cout<<'\n'; } return 0; } ...
https://www.eeworm.com/dl/522666.html
查看: 59

技术资料 C语言各知识点详细总结

C语言各知识点详细总结27页C 语言知识要点复习资料 总体上必须清楚的: 1)程序结构是三种: 顺序结构 、选择结构(分支结构)、循环结构。 2)读程序都要从 main()入口, 然后从最上面顺序往下读(碰到循环做循环,碰到选择做选择),有 且只有一个 main 函数。 3)计算机的数据在电脑中保存是以 二进制的形式. 数据存放的位置就是 他 ...
https://www.eeworm.com/dl/745283.html
下载: 2
查看: 6647

技术资料 PID-小车类-基于Cortex-M0的BLDC电机驱动

#include "NUC1xx.h"#include "Hal.h"#include "pwm.h"//wait current PWM cycle done, otherwise there maybe short pulse on FETvoid PWM_Stop(U8 ch){ switch(ch) { case PWM_CHANNEL_A: PWMA->u32CNR1 = 0; PWMA->u32CMR1 = 0; while(PWMA->u32PDR1 != 0); break; case PWM_CHANNEL_B: PWMA->u32CNR2 = 0; ...
https://www.eeworm.com/dl/834831.html
下载: 9
查看: 3900

技术资料 单片机电子密码锁设计,内含工程文件、源码文件及电路图

基于单片机的密码锁设计,内含工程文件和源码文件以及电路图#include "config.h" void main(){    LCD_Initial();                       //lcd初始化    init_sys(); ...
https://www.eeworm.com/dl/839574.html
下载: 5
查看: 3337

VIP专区 VIP专区-3000套PLC实例程序

资源包含以下内容:1.2 COMP CHILLER.rar2.20-COMM-E Adapter Diagnostics.zip3.3 Phase Motor Startup Logic.zip4.500编程实例.rar5.550 OPTICOLOUR MOINITORING TM EDIT.rar6.6688-02.rar7.6[1].下降沿和锁存指令试验.rar8.72 Station Bit Shift PLC Program Triggers 3 Cognex Cameras.zip9.AB 1769-WS称重模块使用程序C ...
https://www.eeworm.com/vipdownload/313.html
查看: 100