码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
java web项目,java类中获得WEB-INF路径
private static String getWebInfPath() { URL url = 当前类.class.getProtectionDomain().getCodeSource().getLocation(); String path = url.toString(); int ...
分类:编程语言   时间:2014-05-15 16:54:07    阅读次数:378
冒泡排序改
//基本类型for(int i=0;i<d.length;i++){for(int j=i+1;j<d.length;j++){if(d[i]<d[j]){double temp=d[i];d[i]=d[j];d[j]=temp;基本类型排序,需要注意2点,1,排序过程中,需要引用中间值,类似2个瓶...
分类:其他好文   时间:2014-05-15 16:52:11    阅读次数:265
Java oop总结一
一、 对象 1. 属性 1) 属性 a) 数据类型 基本数据类型:整型(byte、short、int、long),浮点型(float、double)、字符型(char)、布尔型(boolean)。 引用数据类型:自定义类型、数组、接口。 2) 方法 a) 方...
分类:编程语言   时间:2014-05-15 16:45:41    阅读次数:374
加载歌词代码
ios 开发学习记录编写音乐播放器:获取歌词的思路:加载歌词:歌词加载方法://此方法是通过路径拿到歌词将其取出 NSString *lrcPath(自己定义的字符串变量名) = [[NSBundle mainBundle] pathForResour...
分类:其他好文   时间:2014-05-15 16:39:12    阅读次数:303
杭电2025
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 string str=""; 8 string str2=""; 9 char max;10 while (getline(ci...
分类:其他好文   时间:2014-05-15 16:20:41    阅读次数:258
ubuntu编译openwrt前端web界面
openwrt是由Cisco放出源代码的开放无线路由平台。由于是基于linux内核,所以可以将很多linux平台下的软件移植到此平台下,然后让无线路由拥有很多意想不到的功能,例如拿来做BT下载器,音乐播放器,小型数据库处理等等。环境:Ubuntu 10.04,subversion,VMware wo...
分类:Web程序   时间:2014-05-15 16:16:41    阅读次数:492
win32 Application 和Win32 Console Application 的区别
Win32 Application和Win32 Console Application 都是工作在32位Windows环境的程序。其中Win32 Application 就是普通的常见的窗口应用程序,当然有的界面做得比较个性化,比如圆形的、不规则形状的…… 它们都是所谓的GUI(Graphics U...
分类:移动开发   时间:2014-05-15 16:09:42    阅读次数:436
boost::interprocess(1)
发送端:#include #include #include using namespace std;#include #include #include using namespace boost::interprocess;int num = 0;mapped_region *mp_r;void...
分类:其他好文   时间:2014-05-15 16:05:06    阅读次数:258
安卓小常识(3)
Bundle bunde = this.getIntent().getExtras();getIntent得到一个Intent,是指上一个activity启动的intent,这个方法返回intent对象,然后调用intent.getExtras()得到intent所附带的额外数据至于说所谓的额外数据...
分类:移动开发   时间:2014-05-15 16:02:26    阅读次数:320
静态,final,接口
一:static static: 静态的. 1. 若需要一个类的多个对象共享一个变量,则该变量需要使用 static 修饰. 2. 因为 static 修饰的变量为类的所有的实例所共享,所以 static 成员不属于某个类的实例, 而属于整个类. 所以在访问权限允许的情况下,可以使用 "类名...
分类:其他好文   时间:2014-05-15 16:01:14    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!