摘要: 1. void *memset(void *s, ch, size n); //将指针s所指向的内存的前n个字节置为ch#include "stdafx.h"#include #include #include using namespace std;void char_memset(){ c... 阅读全文
posted @ 2015-12-25 16:02 dongyanxia 阅读(475) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-21 15:53 dongyanxia 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 按照AT命令的规范,普通的AT命令在命令发送后到收到应答期间,不能收发其他AT命令.本实施例中,由于SIM卡数据AT命令的收发时间是不定的,所以另外启用了一个线程(第一线程)专门处理SM卡数据AT命令(SM卡的交互命令),与普通AT命令区分开来,保证在任何时候都可以处理SM卡数据的AT命令。具体来讲... 阅读全文
posted @ 2015-12-18 16:10 dongyanxia 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 指向结构体变量的指针的定义形式与一般指针变量的定义形式相同,只是将其指向类型定义为结构体类型即可。例如: struct person { char name[20]; char sex; int age; float height; }; struct person *p; //指针类型是结构体 / 阅读全文
posted @ 2015-12-18 15:57 dongyanxia 阅读(362) 评论(1) 推荐(0) 编辑
摘要: SIM Power SupplyVSIM is the power supply to the SIM card.During the activation/deactivation process, VSIM output is automatically controlled.The on/of... 阅读全文
posted @ 2015-12-18 14:38 dongyanxia 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Reset of the CardA card reset is initiated by the interface device,whereupon the card shall respond with an Answer to Reset(ATR).By the end of the act... 阅读全文
posted @ 2015-12-18 10:16 dongyanxia 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 1. 代码 1 #include<iostream> 2 #include<stdio.h> 3 #include<cmath> 4 using namespace std; 5 //将一个浮点数保留n位小数进行四舍五入 6 void main() 7 { 8 float a=55.3252,b=5 阅读全文
posted @ 2015-10-26 10:41 dongyanxia 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1.代码 1 void main() 2 { 3 float a=3.1415926; 4 int b=2; 5 printf("float=%f\n",a); 6 printf("float=%.5f\n",a); 7 printf("float=%.4f\n",a); 8 printf("flo 阅读全文
posted @ 2015-10-24 13:11 dongyanxia 阅读(403) 评论(1) 推荐(0) 编辑
摘要: 1. 代码 1 #include<iostream> 2 #include<stdio.h> 3 using namespace std; 4 class Point 5 { 6 public: 7 Point(int x=0,int y=0):x(x),y(y) 8 { 9 count++; 10 阅读全文
posted @ 2015-10-24 12:36 dongyanxia 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1. 定义一个静态成员变量,静态成员函数打印出静态成员变量的值 1 #include <iostream> 2 #include <stdio.h> 3 using namespace std; 4 class Point 5 { 6 public: 7 Point(int x = 0,int y 阅读全文
posted @ 2015-10-24 12:26 dongyanxia 阅读(2105) 评论(0) 推荐(0) 编辑