码迷,mamicode.com
首页 >  
搜索关键字:public void __cdecl    ( 122950个结果
java实现——030最小的k个数
1.O(nlogk)海量数据 1 import java.util.TreeSet; 2 3 public class T030 { 4 public static void main(String[] args){ 5 int[] data = {4,5,1,6,2,7,...
分类:编程语言   时间:2014-05-08 18:07:12    阅读次数:422
android ScrollView中嵌套GridView,ListView只显示一行的解决办法
注:本文是由网上大神分享的解决方案汇集而成方法一:重写ListView、GridView:重写ListView: 1 public class MyListView extends ListView { 2 3 public MyListView(Context context) { 4 ...
分类:移动开发   时间:2014-05-08 17:57:50    阅读次数:409
LeetCode --- Two Sum
题目链接附上代码: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 vector twoSum(vector &numbers, int target) ...
分类:其他好文   时间:2014-05-08 17:50:11    阅读次数:253
Bitmap 转字节流字符, 压缩等处理
//压缩后转字节字符 public String bitmaptoString(Bitmap bitmap) { // 将Bitmap转换成字符串 String string = null; ByteArrayOutputStream b...
分类:其他好文   时间:2014-05-08 17:48:43    阅读次数:267
sahrepoint 上次数据到文档库
sharepoint学习笔记汇总 http://blog.csdn.net/qq873113580/article/details/20390149    protected void Button1_Click(object sender, EventArgs e)         {             using (SPSite site = new SPSite("http:...
分类:其他好文   时间:2014-05-08 17:13:44    阅读次数:254
Uva 12012 Detection of Extraterrestrial 求循环节个数为1-n的最长子串长度 KMP
题目链接:点击打开链接 题意: 给定一个字符串str 求字符串str的 循环节个数为 1-len 个的 最长子串长度 思路:套用kmp的性质 #include #include #include using namespace std; #define n 1300 void getnext(char str[n],int next[n]){ int m=strlen(str);...
分类:其他好文   时间:2014-05-08 17:12:53    阅读次数:330
C#下点击右键之后自动选择为当前选中的节点
private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if(e.Button==MouseButtons.Right) { TreeNode tn=treeView1.GetNodeAt(e.X,e.Y); if(tn!=null)treeView1.SelectedNode...
分类:其他好文   时间:2014-05-08 16:24:44    阅读次数:308
iOS:获取图片Alpha图片
-(void)createImages { // Load the alpha image, which is just the same Ship.png image used in the clipping demo NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"Ship.png" ofType:n...
分类:移动开发   时间:2014-05-08 16:17:52    阅读次数:401
java输入输出
1、import java.io.*;//写进文档,然后又在显示器显示出来。public class fileinputstream{public static void main(String[] args) throws IOException {DataOutputStream out = n...
分类:编程语言   时间:2014-05-08 15:40:06    阅读次数:376
java实现——007用两个栈实现队列
1 import java.util.Stack; 2 3 public class T007 { 4 public static void main(String[] args) { 5 Queue q = new Queue(); 6 q.stack1...
分类:编程语言   时间:2014-05-08 15:32:24    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!