安卓简易对话框

package com.example.dialog; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.view.Menu; import...
android | 2015-12-31 16:00 | 阅读 1429 次 | 评论 0 条

Gallery_ImageSwitcher控件

public class MainActivity extends Activity { private Gallery gallery; private ImageSwitcher switcher; private List<Integer> lst; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); galle...
android | 2015-12-30 15:52 | 阅读 1486 次 | 评论 0 条

自定义适配器(对象/图像)类

package com.example.android_12_28; import java.util.List; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; public class OneImageAdapter extends BaseAdapter { private List<I...
android | 2015-12-28 23:12 | 阅读 1624 次 | 评论 0 条

自定义适配器()MainActivity

public class MainActivity extends Activity { private ListView listView; private List<User> userList; private List<String> list; private List<String> list2; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.lay...
android | 2015-12-28 23:07 | 阅读 1768 次 | 评论 0 条

多表汇总目录指引

Set rng = Sheets("洗沫汇总表").Range("a1:e50") rng.Select Selection.Clear Sheets("洗沫汇总表").Cells(1, 1) = "部门" Sheets("洗沫汇总表").Cells(1, 2) = "金质" Sheets("洗沫汇总表").Cells(1, 3) = "金重" Sheets("洗沫汇总表").Cells(1, 4) = "报表编号" Sheets("洗沫汇总表").Cells(1, 5) = "表名" ii...
VBA | 2015-12-23 20:33 | 阅读 2365 次 | 评论 0 条

vba处理excel的确高效

Private Sub formjpsto過度表復制() ' ' Macro2 Macro 111,22222,3333 ' qunxingw 在 2015/11/21 錄製的巨集 ' ' Application.Run "'複製 -實驗.xls'!copyjpstemp" Application.Run "'複製 -實驗.xls'!deletemprow" Application.Run "'複製 -實驗.xls'!COPY過渡表" End Sub Private Sub 總表處理() Dim rs As Long Dim rm As Long rs = range("A6...
VBA | 2015-11-24 22:49 | 阅读 1979 次 | 评论 0 条

百度地图定位

public class MainActivity extends Activity { private MapView mMapView; private LocationClient locationClient; private BaiduMap baiduMap; private boolean firstLocation; private BitmapDescriptor mCurrentMarker; private MyLocationConfige...
android | 2015-10-27 11:17 | 阅读 2586 次 | 评论 0 条

android 数据存储简介

e本文介绍Android中的5种数据存储方式。 数据存储在开发中是使用最频繁的,在这里主要介绍Android平台中实现数据存储的5种方式,分别是: 1 使用SharedPreferences存储数据 2 文件存储数据 3 SQLite数据库存储数据 4 使用ContentProvider存储数据 5 网络存储数据 下面将为大家一一详细介绍。 第一种: 使用SharedPreferences存储数据 SharedPreferences是Android平台上一个轻量级的存储类,主要是保存一些常用的配置比如窗口状态,一般在Activity中 重载窗口状态onSaveInstanceSta...
学习档案 | 2015-10-12 12:07 | 阅读 1713 次 | 评论 0 条

android Studio安装

http://www.cnblogs.com/timeng/archive/2013/05/17/3084185.html http://jingyan.baidu.com/article/67662997393cf654d51b8435.html http://segmentfault.com/a/1190000002401964 http://blog.csdn.net/zhoujn90/article/details/8957713 http://www.linuxidc.com/Linux/2014-09/106914...
学习档案 | 2015-07-01 20:56 | 阅读 1703 次 | 评论 0 条

oracle安装链接及常见异常避免和解决

http://www.cnblogs.com/zhengcheng/p/4170773.html 在64位Windows 7 系统下安装Oracle Database 11g 的过程中,出现提示:“未找到文件 E:\app\Administrator\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear”,分析估计是文件没有全部复制到安装目录的原因, 解决方法如下: 将下载下来的两个Zip文件,分别解压到不同的文件夹。这样会得到两个文件夹:win64_11gR2_da...
学习档案 | 2015-04-19 19:47 | 阅读 1705 次 | 评论 0 条

网页小游戏

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>点我啊</title> <style type="text/css"> i...
学习档案 | 2015-03-22 20:54 | 阅读 2025 次 | 评论 0 条

JAVA练习

import java.util.*; /*用相关函数练习双色球。*/ public class Caipiao { public static void main(String[] args){ List<Integer> list=new ArrayList<Integer>(); List<Integer> listcai=new ArrayList<Integer>(); for(int i=0; i<33; i++){//从1到33的数添加到LIST集里 list.add(i+1); } Random rd=new Random(); for(i...
学习档案 | 2015-01-23 20:27 | 阅读 2124 次 | 评论 0 条

坦克风云中的华为题

最近接触到一款坦克风云的手游,其中有个军团争霸环节,涉及到军团排名,前三竞争很是激烈。有三个军 团A,B,C,战力分别排名1,2 ,3。每个军团由于级别不同,所容玩家成员个数也不一样。因A,C是盟军 团,且A+C的战力大于2倍B,觉得如果玩家组织好,让A,C军团的玩家进行适当的交换,就可以让第三名超 过第二名B。运用二数组交换数据,分别让二个数组之和尽可能接近思想(华为题好象二数组同长),可以利益最大化,当然操作 有很大难度,需要玩家相当信任且相当组织和服从。这里可以二个方案,1,可以以A,C中值为标准,找最 接近中值的数,2,让第...

异或运算加密与解密练习

根据 a=b^c 相互关系。 #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i,j,len,len_one; char one[10000],two[10000];//one[]为密钥,two[]为明文 printf("请输入明文:"); gets(two); printf("请输入密钥:"); gets(one); len_one=strlen(one); len=strlen(two); f...
学习档案 | 2013-09-19 18:40 | 阅读 2371 次 | 评论 0 条

10进制转换其他进制

#include <stdio.h> #include <stdlib.h> void output(int a,int n)//10进制转换 其他进制。 { char s[16]={"0123456789ABCDEF"}; if(a/n==0) { printf("%c",s[a%n]); return; } output(a/n,n); printf("%c",s[a%n]); } int main(int argc, char *argv[]) { i...
学习档案 | 2013-08-30 12:27 | 阅读 2012 次 | 评论 0 条

借鉴“皇后之美”

八皇后是经典之作,近再读,想起一老题(http://bbs.bccn.net/thread-382842-1-1.html),借用此法。与B 版有异曲同工之妙。 一个排序问题求解 全班同学排成 6 排, A 、 B 、 C 、 D 、 E 、 F 等 6 人分别站在第 1 排到第 6 排 • 用 6 个 int 变量表示 A — F 的位置 – A 不在第 1 排 à a != 1 A 与 B 前后相邻 (a == b + 1) || (a == b - 1) C 在 D 前面 c == d - 1 E 在 B 的前两排 e == b...

收据金额小写转换大写

收据金额汉字大写表示,写法和读法是不一样的,如1001,读法为:壹仟零壹元整,写法为:壹仟零佰零拾壹元整。现以目前实际中的用法,试写,没考虑分角情况。 #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int len,i; char source[16],*cn[]={"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"}; printf("请输入一个不大于16位的整数(阿拉伯数字表示)\n"); gets(source);...

双色球,红球遍历

#include <stdio.h> #include <stdlib.h> #define max 33 #define num 6 int main() { FILE *FP; FP=fopen("CAIPIAO.txt","w+"); int i,j,k,l,m,n,o; int b[num]; for(i=6;i<=max; i++) { b[0]=i; for(j=5;j<i; j++) { b[1]=j; ...
学习档案 | 2013-07-15 22:25 | 阅读 2298 次 | 评论 0 条

结构体

#include<stdio.h> struct WORK { int begin; int end; int value; }; int main() { int i; WORK worke[5]; for(i=0; i<5; i++) scanf("%d%d%d",&amp;worke[i].begin,&amp;worke[i].end,&amp;worke[i].value); for(i=0; i<5; i++) printf("%d,%d,%d\n",worke[i].begin,worke[...
学习档案 | 2013-06-25 16:01 | 阅读 1734 次 | 评论 0 条

动态规划练习3

引题 http://bbs.bccn.net/viewthread.php?tid=414177&amp;extra=&amp;page=1 加工工件获取最大价值的问题,为了便于理解学习核心的部分,把题目分解: 开始时间,结束时间,加工工件价值,分别用三个数组表示。 以结束时间排序好。 动态转移方程直接在递归式中表现。 f(i,j)表示至第i个工件时结束时间为j时 累加最大价值。 主要意思是,选取第i个工件时,和不取第i个工件时情况的价值中取较大值。 通俗的讲,当取第i个工件时,此时选取后的 j 值为第i个工件的开始时间,不选 i工件 时此时的j值为(i-1)工件的结束时间。 #in...
学习档案 | 2013-06-25 12:39 | 阅读 2072 次 | 评论 0 条
浏览231947次
最新评论