码迷,mamicode.com
首页 >  
搜索关键字:nullptr null 0    ( 34233个结果
19 inflate用法
LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);View layout = inflater.inflate(R.layout.main, null);...
分类:其他好文   时间:2014-05-01 13:10:22    阅读次数:310
VC 绘图技巧--自定义形状图形
自定义形状图形,定义几个点围城的图形,然后进行描边和填充:[cpp]view plaincopyif(m_memDC.m_hDC!=NULL){CPointpoint[4];point[0].x=nLeft+(int)(0.1*m_nWidth);point[0].y=m_nYmargin;poin...
分类:其他好文   时间:2014-05-01 11:47:28    阅读次数:329
win32 sdk绘制ListBox控件
1》产生:[html]view plaincopy//HWNDCreateLB(HWNDparentWnd){HWNDhListBox=0;hListBox=CreateWindow("LISTBOX",NULL,WS_CHILD|WS_VSCROLL|WS_TABSTOP|LBS_STANDARD...
分类:Windows程序   时间:2014-05-01 11:24:03    阅读次数:512
vc 加载bmp位图并显示的方法
方法一、显示位图文件[cpp]view plaincopyHBITMAPhBitmap=(HBITMAP)LoadImage(NULL,_T(“xxx.bmp”),Image_Bitmap,0,0,Lr_CreateDibSection|Lr_DefaultSize|Lr_LoadFromFile)...
分类:其他好文   时间:2014-05-01 11:05:09    阅读次数:352
VC 获取指定文件夹路径的方法小结
VC获取指定文件夹路径flyfish 2010-3-5一 使用Shell函数1 获取应用程序的安装路径TCHAR buf[_MAX_PATH];SHGetSpecialFolderPath(NULL,buf,CSIDL_PROGRAM_FILES,NULL);AfxMessageBox(buf);2...
分类:其他好文   时间:2014-05-01 10:42:38    阅读次数:357
有趣的sql
1.给表添加,修改字段--添加alter table Infoadd ExpireDate varchar(50) not null--修改(手动修改表结构时,有时会遇到TimeOut过期的问题,用sql改的时候没有发现异常)alter table Infoalter column ExpireDa...
分类:数据库   时间:2014-05-01 05:24:10    阅读次数:489
c++ ACM常用函数
1 保留小数点后两位#include cout const char * spilt="/";char *p;p=strtok(str,spilt);while(p!=NULL){ //cout #includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:编程语言   时间:2014-05-01 05:05:45    阅读次数:409
LeetCode:Rotate List
题目链接Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.首...
分类:其他好文   时间:2014-05-01 04:52:19    阅读次数:288
js中由undefined说起
typeof()函数 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"   js中undefined,null,NaN的区别 1.类型分析: js中的数据类型有undefined,boolean,number,string,object等5种,前4种为原始类型,第5种为引用类型。 未定义的值...
分类:Web程序   时间:2014-04-29 13:45:21    阅读次数:414
链表《2》使用函数操作链表
使用函数操作链表 1:计算链表中结点的个数:定义一个Length_list()函数用于计算链表中结点的个数 函数代码: //计算链表中结点的个数 void Length_list(PNODE pHead) { PNODE p = pHead->pNext; int len = 0; while(NULL != p) { len++; p = p->pNext; ...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:302
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!