码迷,mamicode.com
首页 >  
搜索关键字:content type    ( 73822个结果
整理出的各种类型的字节数
//LINUX中GCC类型长度(字节)//typex86_sizeof(type)x64_sizeof(type)//char11//short22//int44//long48//void*48//longlong88//float44//double88//__GNUC__/nux//__i38...
分类:其他好文   时间:2014-05-18 19:48:00    阅读次数:306
Android两个页面之间的切换效果工具类
import android.annotation.SuppressLint;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.os.Buil...
分类:移动开发   时间:2014-05-18 19:43:22    阅读次数:502
Golang(笔记) 面向对象
package main import ("fmt")//对象定义type Rect struct{x,y float64width ,height float64} //对象方法实现func (r *Rect) Area()float64{return r.width*r.height}//Go语...
分类:其他好文   时间:2014-05-18 19:36:55    阅读次数:405
默认手机照相功能
下面是主要代码:- (void) addPicEvent{ //先设定sourceType为相机,然后判断相机是否可用(ipod)没相机,不可用将sourceType设定为相片库 UIImagePickerControllerSourceType sourceType = UIImagePicker...
分类:移动开发   时间:2014-05-18 19:30:14    阅读次数:284
Android service的开启和绑定,以及调用service的方法
界面: Activitypackage com.example.serviceTest;import android.app.Activity;import android.content.ComponentName;import android.content...
分类:移动开发   时间:2014-05-18 19:12:31    阅读次数:377
Ubuntu下su:authentication failure的解决办法
$ su - rootPassword:su: Authentication failureSorry.这时候输入$ sudo passwd rootEnter new UNIX password:Retype new UNIX password:passwd: password updated s...
分类:其他好文   时间:2014-05-17 20:08:38    阅读次数:241
div+css命名规则-增强SEO
div+css命名规则-增强SEO页头:header登录条:loginBar标志:logo侧栏:sideBar广告:banner导航:nav子导航:subNav菜单:menu子菜单:subMenu搜索:search滚动:scroll页面主体:main内容:content标签页:tab文章列表:lis...
分类:Web程序   时间:2014-05-17 19:50:40    阅读次数:415
总结(5.13)
生成图片:1.生成图片$img=imagecreaturecolor(宽,高);2.生成颜色(1)当第一次调用生成颜色的方法,是生成背景颜色。 $bg=imagecolorallocate($img,0,0,0);(2) 第二次调用是生成图片上的文字或其他样式的颜色 $te=imagecolo...
分类:其他好文   时间:2014-05-17 19:43:28    阅读次数:173
Android 使用MediaRecorder录音
package com.example.HyyRecord;import android.app.Activity;import android.content.Intent;import android.media.MediaRecorder;import android.net.Uri;impo...
分类:移动开发   时间:2014-05-17 19:09:09    阅读次数:349
c++ 指针(不断更新)
c++指针只能说博大精深,在用的时候感觉好晕1.指针类型转换/*在指针的强制类型转换:ptr1=(TYPE*)ptr2中,如果sizeof(ptr2的类型)大于sizeof(ptr1的类型),那么在使用指针ptr1来访问ptr2所指向的存储区时是安全的。如果sizeof(ptr2的类型)小于size...
分类:编程语言   时间:2014-05-17 19:08:28    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!