自定义Theme继承原来Theme修改其中的分隔线: @null 低版本设置 @null 高版本设置低版本 @drawable/friend高版本 @drawable/friend
分类:
移动开发 时间:
2014-08-30 16:15:49
阅读次数:
218
You are going from Dhaka to Chittagong by train and you came to know one of your old friends is going from city Chittagong to Sylhet. You also know that both the trains will have a stoppage at junctio...
分类:
其他好文 时间:
2014-08-29 16:12:48
阅读次数:
302
Description
You and your friend are playing a 2 player game. The game is played in a graph of
V vertices. The vertices are numbered from 0 to
V-1. The graph has some directed edges. But the gr...
分类:
其他好文 时间:
2014-08-29 01:26:06
阅读次数:
305
链接:http://poj.org/problem?id=1474Video SurveillanceTime Limit:1000MSMemory Limit:10000KTotal Submissions:3247Accepted:1440DescriptionA friend of yours...
分类:
其他好文 时间:
2014-08-28 11:13:59
阅读次数:
251
1,friend申明一个友元friend一般为一句申明式,它位于一个类的内部,它申明一个类或者一个函数为该类的友元。friend并不是定义一个成员函数,所以 friend放在public,protected或者private前都可以,完全是一样的。做为一个友元,即表示在该类或者该函数内部可以访问这个...
分类:
编程语言 时间:
2014-08-28 08:28:19
阅读次数:
278
Problem Description
Last night, little erriyue had a horrible nightmare. He dreamed that he and his girl friend were trapped in a big maze separately. More terribly, there are two ghosts in the maz...
分类:
Web程序 时间:
2014-08-27 22:03:18
阅读次数:
255
一些基本的模版特性:非类参数模版模版所声明的参数可以不是类参数,可以声明的非类参数包括整数(double,float不可以),enum,对象引用或指针。通过模版嵌套实现类或非类参数载类方法参数上的重载(调用时实现,不在定义时实现)友元函数模版:直接举例:template friend ostream...
分类:
其他好文 时间:
2014-08-26 13:34:36
阅读次数:
279
http://acm.hdu.edu.cn/showproblem.php?pid=4460
求任意点对的最短距离的最大值,因为题目数据量大,用floyed 和dijkstra都不行,这里用spfa实现
#include
#include
#include
#include
#include
#include
#include
#include
#define N 1001
#define i...
分类:
其他好文 时间:
2014-08-26 09:55:35
阅读次数:
241
13.31为你的HasPtr类定义一个#include#include#include#includeusing namespace std;class HasPtr{friend void swap(HasPtr&,HasPtr&);public: HasPtr(const string &...
分类:
其他好文 时间:
2014-08-21 22:35:14
阅读次数:
446
/**
* 功能:友元
* 时间:2014年8月20日16:13:42
* 作者:cutter_point
*/
/*
*编译器知道如何传递一个地址,这一个地址具有固定的大小,而不管被传递的是什么对象
*然而试图传递整个对象的话,那么编译器就必须知道X的全部定义以确定他的大小以及如何
*传递,所以程序就无法声明一个类似于Y::g(X)的函数,所以下面的f(X*)函数必须是指针
*/
struct...
分类:
编程语言 时间:
2014-08-20 16:20:12
阅读次数:
173