文件操作用到的函数: #include fopen(FILE* fp): 文件打开函数; 1、打开成功返回当前文件所处的地址值;2、打开失败返回一个空指针”NULL”; 常用方法:if((fp=fopen(“file_name”,”mode”))==NULL)printf(“can not open...
分类:
其他好文 时间:
2015-01-27 00:25:44
阅读次数:
170
1 public class MessageService extends Service { 2 3 // 获取消息线程 4 private MessageThread messageThread = null; 5 6 // 点击查看 7 pr...
分类:
移动开发 时间:
2015-01-27 00:17:39
阅读次数:
257
今日有针对NULL值有了相关实验. 对NULL 值插入的讨论.1, PL/SQL 中可以执行插入''或者NULL 的操作, 前提是栏位允许为空.2, 可以对NULL进行一系列数据库运算. 如: SELECTROUND(TO_NUMBER(MAX(A.IN_STATION_TIME)-SYSDATE)...
分类:
数据库 时间:
2015-01-27 00:12:24
阅读次数:
239
大家一般觉得名不见经传strcpy函数实现不是非常难,流行的strcpy函数写法是:char *my_strcpy(char *dst,const char *src){ assert(dst != NULL); assert(src != NULL); char *ret = dst; while...
分类:
其他好文 时间:
2015-01-26 22:34:01
阅读次数:
163
//无法正常运行
#include
#include
using namespace std;
class book
{
public:
int num;
float price;
book *next;
};
book *head=NULL;
bool check(string str)//检查是否是数字
{
for(int i=0;i<str.length();i++)
{
if...
分类:
编程语言 时间:
2015-01-26 19:19:26
阅读次数:
133
(1)create table fl_20150126 as select * from fl;create table flmx_20150126 as select * from flmx;(2)update flmx set pzid = null where yy = '2015';(3)d...
分类:
其他好文 时间:
2015-01-26 19:05:41
阅读次数:
147
常用API-Hashtable类及其与HashMap、HashSet的区别
一、Hashtable类
1.概述
Hashtable是一种高级数据结构,实现了一个Key-Value映射的哈希表,用以快速检索数据。Hashtable不仅可以像Vector一样动态存储一系列的对象,而且对存储的每一个值对象(值)都安排与另一个键对象(关键字)相关联,非null对象都可以被使用作为...
分类:
编程语言 时间:
2015-01-26 17:15:59
阅读次数:
221
#include
using namespace std;
class book
{
public:
int num;
float price;
book *next;
};
book *head=NULL;
book *creat()
{
book *p1,*p2;
p1=new book;
head=p1;
p2=p1;
cout<<"请输入图书的编号,以0结束"<<endl;...
分类:
编程语言 时间:
2015-01-26 17:11:22
阅读次数:
200
对于很多android开发者来说,listview的divider是个比较头痛的麻烦,因为listview在默认的情况下是启用footerDivider的(即android:footerDividersEnabled="true"),但实际上为什么就没有显示footerDivider呢?答案很简单:因为一般情况下你的footerView是空的(null)。当footerView为空的时候,foot...
分类:
移动开发 时间:
2015-01-26 17:02:59
阅读次数:
619
c#中有统一的类型转换函数Convert.ChangeType(object value, Type conversionType)但是这个函数没有考虑到转换null, DBNull, Nullable, Enum这些类型下面通过扩展ChangeType来实现上述类型的转换 publi...