搜索资源列表
3.1
- c++编程思想 3.1答案。3.1创建一个头文件,声明一组数组,具有可变参数。返回值包括void,char,int,float。-solution of thinking in c++ ,3.1, Create a header file (with an extension of ‘.h’). In this file, declare a group of functions by varying the argument lists and return values among
DX10_2D_DrawLine
- directX d3d10环境下 输出文本的示例 void RenderTextOutLine(ID3D10Device* pd3dDevice,char*strConext,LONG x,LONG y,D3DXCOLOR*dxColor )-void RenderTextOutLine(ID3D10Device* pd3dDevice,char*strConext,LONG x,LONG y,D3DXCOLOR*dxColor )
myUART
- 51单片机串口发送函数,包括IO定义和函数定义-51 MCU UART send void
1134
- 用于基本数据类型之间的转换,如把int转换成char,把int转换成enum。这种转换的安全性也要开发人员来保证。 把空指针转换成目标类型的空指针。 把任何类型的表达式转换成void类型。-Between the basic data types for conversion, such as the int into a char, the int to convert enum. This conversion should be the development of security pe
alloc
- Memory Allocation in C-write part of a dynamic storage allocationpackage. The package provides three function calls: void initalloc(), toinitialize the data structures involved char* alloc(int n), which returnsa pointer to a block of n chars when ca
openGlDisplay-Chinese
- 项目描述: OpenGL显示中文 在这个类中您必须重载如下几个虚函数: virtual void Update(DWORD milliseconds) 执行所有的更新操作,传入的参数为两次操作经过的时间,以毫秒为单位 virtual void Draw() 执行所有的绘制操作-Project Descr iption: OpenGL display Chinese In this class you must override the following virtua
malloc
- Malloc 向系统申请分配指定size个字节的内存空间。返回类型是 void* 类型。void* 表示未确定类型的指针。C,C++规定,void* 类型可以强制转换为任何其它类型的指针。-Malloc to the system for the allocation of the specified size bytes of memory space. Return type is void*. void* indicates undetermined type pointer. C, C+
step-4-example2
- private UsbManager usbManager private UsbSerialDriver device protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) // Get USB manager Android. usbManager = (UsbManager) getSystemService(Context.USB_SERVICE) -private
alloc
- Memory Allocation in C-write part of a dynamic storage allocationpackage. The package provides three function calls: void initalloc(), toinitialize the data structures involved char* alloc(int n), which returnsa pointer to a block of n chars when ca
fre
- ree(void *p)函数是用来释放程序动态申请的内存。其参数是个指针类型。在C当中,只有当使用了动态内存申请函数malloc calloc realloc申请内存之后,才可以使用free来释放之。释放之后就不能再使用了。-ree (void* p) function is used to release the program dynamically allocated memory. Its argument is a pointer type. In C, only apply when
ep1
- C++编程(面向对象程序设计)第一次试验上机答案,北京理工大学-1. Read the codes carefully on page 230 and page 248 of the book, or on page 247 and page 266 of the electronic book, then answer the questions as below: 1.1 Describe the main data structure of Stack;
ep2
- 北京理工大学面向对象程序设计第二次上机习题答案-1. Here is the codes: #include <iostream> using namespace std void main() { cout << Hello World!\n } Add some codes and get the results as follows: Initialize Hello, World! C
ep3
- 北京理工大学面向对象程序设计第三次上机习题答案~-1. Define MyString class with demands as follows: 1.1 MyString can save any string 1.2 Overload operator+ to append string to another one 1.3 Define Find function to locate the position of searching
ep4
- 北京理工大学面向对象程序设计第四次上机习题答案~-1. Define a class, DATE, including year, month and day and satisfy the demands as below: 1.1 Search keywords tm in the MSDN or internet to know how to get current date, and see also example on page 382 in the book o
Exercises-of-the-first-experiment
- 北京理工大学面向对象程序设计第五次上机习题答案~-Here is the definition of Point: class Point { private: double X, Y public: void SetPoint(double a, double b) } void Point::SetPoint(double a, double b) { X = a Y = b } a)
DHT11forSTM32
- 本章我们将向大家介绍如何使用STM32来读取DHT11数字温湿度传感器,从而得到环境温度和湿度等信息,并把从温湿度值显示在TFTLCD模块上。-// - // void calc_sth11(float*p_humidity ,float*p_temperature) { const float C1=-4.0 // for 12 Bit
sqlss
- C#与SQL链接,并向数据库写入数据,能够实现C#与SQL无缝链接-protected override void OnClosing(CancelEventArgs e)
uart_print
- void uart_init():uart初始化配置,配置相应IO口状态、奇偶校验选择以及波特率等参数。 unsigned char uart_max_data_get(unsigned char *buf) :通过协议计算等获取串口通讯的最大数据长度,用于判断这一帧数据接收完全 unsigned char uart_recive(unsigned char *buf):串口接收函数,接收到的数据存储在buf中。
elsfk
- 代码编写顺序如下: 游戏界面初始化 游戏开始时,右main函数调用一次 void InitGame() { 提示界面 游戏初始化界面 调用CreateBlock函数生成方块 } 左边是游戏区(区域大小10*20),右边是提示区(包括下一个方块的种类,用户得分) 按键提示: space 暂停 上 旋转 左 方块左移一格 右 方块右移一个 下 方块快速下移 ESC 退出 -C
ym_c-dianzhen-8X8GD.C-hicode
- C语言实现8X8点阵滚动显示温度,DS18B20的操作程序 sbit DQ P3^3 unsigned char time //设置全局变量,专门用于严格延时 函数功能:将DS18B20传感器初始化,读取应答信号 出口参数:flag bit Init_DS18B20(void) { bit flag //储存DS18B20是否存在的标志,flag 0,表示存在;flag 1,表示不存在 DQ 1 //先将数据线拉