码迷,mamicode.com
首页 >  
搜索关键字:android include me    ( 187926个结果
Android 监听ListView、GridView滑动到底部
// 监听listview滚到最底部mIndexList.setOnScrollListener(new OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrol...
分类:移动开发   时间:2014-04-28 09:38:05    阅读次数:2001
HDOJ 3790 双权值Dijkstra
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int INF = 1000000; 8 const int MAXSIZE = 1005; 9 10 int map[MAXSIZE...
分类:其他好文   时间:2014-04-28 09:34:15    阅读次数:558
HDU1022 Train Problem I (栈)
栈+队列 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 int n; 9 char a[11],b[11];10 stacks;11 queu...
分类:其他好文   时间:2014-04-28 09:18:36    阅读次数:537
继承派生产生的切割问题
1 #include 2 #include 3 using namespace std; 4 class people 5 { 6 public: 7 string name; 8 int age; 9 virtual void print();10 };11 12...
分类:其他好文   时间:2014-04-28 09:04:54    阅读次数:690
高效使用auto_ptr
auto_ptr是C++标准库中为了解决资源泄漏的问题提供的一个智能指针类模板。auto_ptr的实现原理是RAII,在构造的时获取资源,在析构的时释放资源。下面通过一个例子掌握auto_ptr的使用和注意事项。事例类的定义:#pragma once#include using namespace ...
分类:其他好文   时间:2014-04-27 21:14:06    阅读次数:622
Catch Application Exceptions in a Windows Forms Application
You need to handle theSystem.Windows.Forms.Application.ThreadExceptionevent for Windows Forms. This article really helped me:http://bytes.com/forum/th...
分类:移动开发   时间:2014-04-27 21:10:16    阅读次数:907
Android网络通讯简介
网络通信应该包含三部分的内容:发送方、接收方、协议栈。发送方和接收方是参与通信的主体,协议栈是发送方和接收方进行通信的契约。按照服务类型,网络通信可分为面向连接和无连接的方式。面向连接是在通信前建立通信链路,而通信结束后释放该链路。无连接的方式则不需要在通信前建立通信连接,这种方式不保证传输的质.....
分类:移动开发   时间:2014-04-27 21:06:52    阅读次数:1082
HDOJ 1217 Floyed Template
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 mapname; 9 const int INF = 1000000;10 const int MAXSIZE = 1005...
分类:其他好文   时间:2014-04-27 21:03:01    阅读次数:552
UESTC 31 饭卡(Card) --背包问题
背包问题。思路:如果m=5: 求出背包容量为m-5,买前n-1样便宜的菜(排个序)的最大价值(即最大消费,即消费完后剩余值最接近5)最后减去最大的那个菜的价格,就得到最小的余额。代码:#include #include #include #include #include using namespa...
分类:其他好文   时间:2014-04-27 21:02:23    阅读次数:640
C++类模板的使用
面向对象:设计和实现一个C++类模板,来提供一种采用数组来存储的、元素为任意类型的环形队。要求提供的操作:加入元素;提取元素;返回环形队允许存储的元素个数最大值;返回当前的有效元素个数。#include#includeusing namespace std; templateclass Queue{...
分类:编程语言   时间:2014-04-27 20:57:04    阅读次数:717
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!