虫虫首页|资源下载|资源专辑|精品软件
登录|注册

SIGNED

  • c语言深度剖析

    第一章关键字...................................................................................................................................9 1.1,最宽恒大量的关键字----auto..........................................................................................11 1.2,最快的关键字---- register............................................................................................... 11 1.2.1,皇帝身边的小太监----寄存器............................................................................. 11 1.2.2,使用register 修饰符的注意点.............................................................................11 1.3,最名不符实的关键字----static........................................................................................12 1.3.1,修饰变量...............................................................................................................12 1.3.2,修饰函数...............................................................................................................13 1.4,基本数据类型----short、int、long、char、float、double........................................... 13 1.4.1,数据类型与“模子”............................................................................................... 14 1.4.2,变量的命名规则...................................................................................................14 1.5,最冤枉的关键字----sizeof...............................................................................................18 1.5.1,常年被人误认为函数...........................................................................................18 1.5.2,sizeof(int)*p 表示什么意思?........................................................................18 1.4,SIGNED、unSIGNED 关键字................................................................................................19 1.6,if、else 组合.................................................................................................................... 20 1.6.1,bool 变量与“零值”进行比较...............................................................................20 1.6.2, float 变量与“零值”进行比较.................................................................................21 1.6.3,指针变量与“零值”进行比较...............................................................................21 1.6.4,else 到底与哪个if 配对呢?...............................................................................22 1.6.5,if 语句后面的分号............................................................................................... 23 1.6.6,使用if 语句的其他注意事项.............................................................................. 24 1.7,switch、case 组合........................................................................................................... 24 1.7.1,不要拿青龙偃月刀去削苹果.............................................................................. 24 1.7.2,case 关键字后面的值有什么要求吗?.............................................................. 25 1.7.3,case 语句的排列顺序...........................................................................................25 1.7.4,使用case 语句的其他注意事项..........................................................................27 1.8,do、while、for 关键字................................................................................................... 28 1.8.1,break 与continue 的区别.....................................................................................28 1.8.2,循环语句的注意点...............................................................................................29 1.9,goto 关键字......................................................................................................................30 1.10,void 关键字....................................................................................................................31 1.10.1,void a?............................................................................................................31 1.10,return 关键字................................................................................................................. 34 1.11,const 关键字也许该被替换为readolny....................................................................... 34 1.11.2,节省空间,避免不必要的内存分配,同时提高效率.................................... 35 1.12,最易变的关键字----volatile.......................................................................................... 36 1.13,最会带帽子的关键字----extern.................................................................................... 37 1.14,struct 关键字..................................................................................................................38

    标签: c语言深度剖析

    上传时间: 2015-05-01

    上传用户:cascas

  • distmesh

    matlab有限元网格划分程序 DistMesh is a simple MATLAB code for generation of unstructured triangular and tetrahedral meshes. It was developed by Per-Olof Persson (now at UC Berkeley) and Gilbert Strang in the Department of Mathematics at MIT. A detailed description of the program is provided in our SIAM Review paper, see documentation below. One reason that the code is short and simple is that the geometries are specified by SIGNED Distance Functions. These give the shortest distance from any point in space to the boundary of the domain. The sign is negative inside the region and positive outside. A simple example is the unit circle in 2-D, which has the distance function d=r-1, where r is the distance from the origin. For more complicated geometries the distance function can be computed by interpolation between values on a grid, a common representation for level set methods. For the actual mesh generation, DistMesh uses the Delaunay triangulation routine in MATLAB and tries to optimize the node locations by a force-based smoothing procedure. The topology is regularly updated by Delaunay. The boundary points are only allowed to move tangentially to the boundary by projections using the distance function. This iterative procedure typically results in very well-shaped meshes. Our aim with this code is simplicity, so that everyone can understand the code and modify it according to their needs. The code is not entirely robust (that is, it might not terminate and return a well-shaped mesh), and it is relatively slow. However, our current research shows that these issues can be resolved in an optimized C++ code, and we believe our simple MATLAB code is important for demonstration of the underlying principles. To use the code, simply download it from below and run it from MATLAB. For a quick demonstration, type "meshdemo2d" or "meshdemond". For more details see the documentation.

    标签: matlab有限元网格划分程序

    上传时间: 2015-08-12

    上传用户:凛风拂衣袖

  • 舵机电机PID控制算法

    #include <hidef.h>      /* common defines and macros */ #include "derivative.h"      /* derivative-specific definitions */ #include <mc9s12xs128.h> //定义PID参数 #define VV_KPVALUE 3       //比例 #define VV_KIVALUE 40     //积分 #define VV_KDVALUE 3     //微分 #define VV_MAX 10000       //返回的最大值,是pwm的周期值 #define VV_MIN 0 #define VV_DEADLINE 0X08   //速度PID,设置死区范围 typedef struct PID       //定义数法核心数据 { SIGNED int vi_Ref;      //速度PID,速度设定值 SIGNED int vi_FeedBack;  //速度PID,速度反馈值

    标签: PID 舵机 电机 控制算法

    上传时间: 2016-04-27

    上传用户:547453159

  • Cognitive+Radio+Networks

    According to the statistics of the Federal Communications Commission (FCC), temporal and geographical variations in the utilization of the as- SIGNED spectrum range from 15% to 85%. The limited available radio spec- trum and the inefficiency in spectrum usage necessitate a new commu- nication paradigm to exploit the existing spectrum dynamically. 

    标签: Cognitive Radio Networks

    上传时间: 2020-05-26

    上传用户:shancjb

  • VIP专区-嵌入式/单片机编程源码精选合集系列(157)

    VIP专区-嵌入式/单片机编程源码精选合集系列(157)资源包含以下内容:1. 嵌入式486手册.2. 奔腾-486处理器指令集手册.3. 1602液晶显示程序+1302温度测量+18b20显示时间(C语言).4. 51写的SLE4442程序实验用的SLE4442卡初始密码PSC1、PSC2、PSC3均为0FFH.5. 语音芯片的驱动程序.6. 嵌入式平台入门--嵌入式系统内存泄漏的检查和预防.7. 从PCI一直讲到PCI EXPRESS的文章.8. 基于TMS320F2812的工控实时时钟.9. 新代数控系统.10. S3C2442 官方 原理图 网上收集的一份原理图!.11. 高级数据链路控制(HDLC)协议的介绍文档.12. ARMSYS实验二十四:FAT16文件系统的移植与应用 描述:对Nandflash进行格式化.13. pxa270 的bootloader源码.14. ds1302源程序 (为辅试验箱调试通过).15. FPGA开发板的原理图很详细的.16. HT单片机模拟I2C通讯.17. easy web build on NXP LPC2300 LPc2400.18. 蓝牙耳机的SCH,与PCB图,可适合于自己动手的朋友们进行创作..19. ti的12位AD采集c实现.20. wince 下测试串口.21. 本系列所采用的所有技术都将“以实例来定义”.22. 用运算放大器做正弦波振荡器在学校时老师就教过.23. FPGA/CPLD数字电路设计经验分享。大唐公司的!.24. NorFlash的烧写及相关说明可以通过串口实现程序的在线升级.25. 嵌入式操作系统实时性比对与评价,尤其对windowsce性能的测试大有帮助。.26. 东芯IV的SEP3203ARM的源代码.27. 1702的资料.28. 数字逻辑交通信号灯课程设计代码请指正.29. C#程序开发范例宝典 图书光盘附带源码 第20章.30. 介绍了嵌入式linux操作系统的知识以及arm编程.31. P,PI D控制系统仿真设计的例子.32. 32位元2進位SIGNED乘法器32位元SIGNED乘法器.33. 用8051单片机和6个数码管加一片DS1302时钟芯片做成实用闹钟.34. UP-NETARM 2410-S 开发平台 电路原理图.35. 通过时钟芯片计算按键开关闭合次数和时间.36. 通过对双口ram 操作判断硬件正确性.37. Nokia 3310 驱动程序 ... KeilC.38. MPC03-LV运动控制卡驱动程序.39. 一个51整开发板的应用(源程序电路图功能全实用给有需要的人).40. I2C : 用C语言编译的I2C.

    标签: 光学 温度变送器

    上传时间: 2013-07-21

    上传用户:eeworm