摘要: 1.查看项目中有没有proguard.cfg。2.如果没有那就看看这个文件中写的什么吧,看完后将他复制到你的项目中。-optimizationpasses5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontpreverif... 阅读全文
posted @ 2015-03-06 09:45 王贺blog 阅读(404) 评论(0) 推荐(0) 编辑
摘要: GET:$htmlsource=file_get_contents("http://192.168.0.13/s/interface/shangpin/shangpinDL"); $postArray = iconv("utf-8", "gbk",$htmlsource); //$postArray... 阅读全文
posted @ 2015-03-03 11:38 王贺blog 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Action:$User=M("user"); $list=$User->select(); $this->assign("list",$list); $this->assign("index",1); $this->display();前台模板标签:volist IDUserNameSexAge ... 阅读全文
posted @ 2015-02-27 15:23 王贺blog 阅读(795) 评论(0) 推荐(0) 编辑
摘要: 两个数据表具体操作如下:/**********************数据库操作********************/ ////////添加数据////////// //填充数据 $NewUser["username"]="zhangsan"; $NewUser["pwd"]="123"; $... 阅读全文
posted @ 2015-02-26 11:38 王贺blog 阅读(142) 评论(0) 推荐(0) 编辑
摘要: -------------------android培训、java培训、期待与您交流! ----------1.获取最大值public static int getMax(int[] arr){int max = arr[0];//设置第一个元素为最大,然后让其和后一位比for(int x=1; xmax)//遍历后面的元素,如果后面的大于max就,让arr[x]的值赋给maxmax = arr[x];}return max;//最后得到的max就是最大值}2.获取最小值public static int getMin(int[] arr){int min = arr[0];];//设置第一个 阅读全文
posted @ 2013-11-24 19:13 王贺blog 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 一.对与java读写文件的操作:字节流://filename可以是文件名,可以是文件路径FileOutputStreamoutputStream=newFileOutputStream(filename);//filename可以是文件名,可以是文件路径//append是否追加FileOutputStreamoutputStream=newFileOutputStream(filename,boolappend);outputStream.write(byte[]);outputStream.close();//filename文件名或文件路径FileInputStreaminputStrea 阅读全文
posted @ 2013-11-05 14:48 王贺blog 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 第四章:文件管理File类:对于File类,里面的方法都是静态方法,就是直接可以用FIle来“.”;记几个方法吧:File.Copy(stringfilename1,stringfilename2);File.Exists(stringfilename);File.Move(stringfilename1,stringfilename2);File.Delete(stringfilename);其他的在课本上看吧,没见考过;但要注意一点,那个filename的格式是”C:\\1.txt”或者是@”C:\1.txt”;FileStream类;主要是对文件流的操作:例:FileStreamf1=F 阅读全文
posted @ 2013-06-22 17:39 王贺blog 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 第三章对于继承:继承是根据父类创建新子类的过程;对于继承:例:PublicclassFather{publicvoidsay(){//dosomething}}PublicclassSon:Father{Publicvoidsay(){//dosomething}}这这里Son就隐藏了Father的say方法,也就是覆盖了;但C#里希望这样写PublicclassSon:Father{Publicnewvoidsay()//多加一个new{//dosomething}}这里讲讲base关键字,上一章讲this的时候提过:Base是对父类的声明:在编译器里,”base.”后面就出现了父类里的属性 阅读全文
posted @ 2013-06-20 23:13 王贺blog 阅读(173) 评论(0) 推荐(0) 编辑
摘要: C#摘要第一章:数据类型:在定义变量的时候,记下规则,开头不能是数字,变量名只能包括字母“_”数字整型类型名称CTS类型说明范围sbyteSystem.SByte8位有符号的整数-128到127(-27到27-1)shortSystem.Int1616位有符号的整数-32768到32767(-215到215-1)intSystem.Int3232位有符号的整数-2147483648到2147483647(-231到231-1)longSystem.Int6464位有符号的整数-9223372036854775808到9223372036854775807(-263到263-1)byteSyst 阅读全文
posted @ 2013-06-20 22:24 王贺blog 阅读(188) 评论(0) 推荐(0) 编辑
摘要: listTag是标题;class MyAdapter extends ArrayAdapter<String> { public MyAdapter(Context context, int textViewResourceId, List<String> objects) { super(context, textViewResourceId, objects); // TODO Auto-generated constructor stub } @Override public View getView(int position, View convertView, 阅读全文
posted @ 2013-05-26 16:25 王贺blog 阅读(262) 评论(0) 推荐(0) 编辑