一个文件里面一般只存放一个类 1 package com_package2; 2 3 public class Car { 4 String color; 5 int num; 6 void run() 7 { 8 int num=10; 9 ...
分类:
其他好文 时间:
2015-04-11 23:54:09
阅读次数:
134
匿名对象 例如:new Car().color="blue"匿名对象调用属性没有意义,调用后立即变为垃圾。但是可以调用方法时有效匿名对象使用方式一:当对对象的的方法只调用一次时,可以用匿名对象来完成,这样比较简化。如果对一个对象进行多个成员调用时,必须给这个对象取个名字匿名对象使用方式二:可以将匿名...
分类:
其他好文 时间:
2015-04-10 17:36:56
阅读次数:
113
Here are the fully expand steps:0) at the beginning , we get expression ``(car (cons 1 2))``1) replace ``cons`` using ``(lambda (m) (m x y))`` , we ge...
分类:
其他好文 时间:
2015-04-09 00:49:11
阅读次数:
113
SET方法内存管理情况一:Person类中有一个属性car-(void) setCar:(Car *) car{ _car = car; // line 1}这样做是不妥的,主方法中调用一下说明这个不妥:Person * p = [[Person alloc]init];Car * c = [[C....
分类:
其他好文 时间:
2015-04-09 00:40:02
阅读次数:
131
Wine in, truth outOne is never too old to learnWhat is done can not be undoneTime tries all thingsEvery dog has its day. 风水轮流转The car will find its wa...
分类:
其他好文 时间:
2015-04-08 13:04:26
阅读次数:
157
///设定停车场有(Size)个车位
///有趣///同学们要是参考的话麻烦改一下 这个是要交作业的 如有雷同 如何是好?
#include
using namespace std;
int n;
int Size = 5;
typedef struct Car
{
int num;
time_t time;
int price;
} CarNode;
type...
分类:
其他好文 时间:
2015-04-04 16:47:40
阅读次数:
157
安装:sudoapt-getinstallaxel一般使用:axelurl(下载文件地址)限速使用:加上-s参数,如-s10240,即每秒下载的字节数,这里是10Kb限制连接数:加上-n参数,如-n5,即打开5个连接。
分类:
其他好文 时间:
2015-04-04 01:23:20
阅读次数:
115
1、限制用户的下载5m(1)、针对一个class限速switch(config)#access-list101permitipanyhost10.10.10.100switch(config)#class-mapmatch-alldown1switch(config-cmap)#matchaccess-group101switch(config)#policy-mapdownswitch(config-pmap)#classdown1switch(config-pmap-c)#p..
分类:
系统相关 时间:
2015-04-02 06:46:44
阅读次数:
280
1、限制用户的下载5m(1)、针对一个class限速switch(config)#access-list101permitipanyhost10.10.10.100switch(config)#class-mapmatch-alldown1switch(config-cmap)#matchaccess-group101switch(config)#policy-mapdownswitch(config-pmap)#classdown1switch(config-pmap-c)#p..
分类:
系统相关 时间:
2015-04-01 20:15:40
阅读次数:
241