??xml version="1.0" encoding="utf-8" standalone="yes"?>色综合天天在线,国产日韩欧美在线看,韩日精品视频一区http://www.aygfsteel.com/luolin/zh-cnThu, 19 Jun 2025 09:44:33 GMTThu, 19 Jun 2025 09:44:33 GMT60语法Q动词)http://www.aygfsteel.com/luolin/archive/2009/08/30/293212.html在从未放弃的路上在从未放弃的路上Sun, 30 Aug 2009 13:35:00 GMThttp://www.aygfsteel.com/luolin/archive/2009/08/30/293212.htmlhttp://www.aygfsteel.com/luolin/comments/293212.htmlhttp://www.aygfsteel.com/luolin/archive/2009/08/30/293212.html#Feedback0http://www.aygfsteel.com/luolin/comments/commentRss/293212.htmlhttp://www.aygfsteel.com/luolin/services/trackbacks/293212.html英文里动词是一个句子中不可~少的部分?br /> 1.完全及物动词
动词加了宾语后意思很完全?br /> 形态:
主语+完全及物动语+宾语
I love her.
Don't hit me.
主语+be动词+现在分语+宾语
I am pulishing him.
主语+be动语+q去分语
He was hit.
2.完全不及物动?br /> 形态:
主语+完全不及物动?br /> He ran.
d+be动词+现在分词
He was running.
3.不完全不及物动词 例如:be动语
主语+不完全不及物动语+补语
He becomes handsome.
He got mad/angry/hungry
He got hurted/killed.
He face turned pale.
The leaves are turning yellow.
4.不完全及物动?br /> I make him wash the car. make/have sb do sth(动词原型)
get sb to do sth
let sb do sth
I let him sing a song.
let up雨停?br /> I have a house to let.我有房子要出U?br />

I will force him to do it.
That story cause me to cry.

5.受予动词
I gave him a car.
give后跟的是双宾语,W一个间接宾?通常是h或对?Q第二个直接宾语Q通常是事或物Q?br /> tell,lend
I gave a book to him.
I teach english to him.
I bought a book for him.
I made a chair fom him.



]]>
p语法Q动词做主语Q?/title><link>http://www.aygfsteel.com/luolin/archive/2009/08/29/293118.html</link><dc:creator>在从未放弃的路上</dc:creator><author>在从未放弃的路上</author><pubDate>Sat, 29 Aug 2009 12:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/luolin/archive/2009/08/29/293118.html</guid><wfw:comment>http://www.aygfsteel.com/luolin/comments/293118.html</wfw:comment><comments>http://www.aygfsteel.com/luolin/archive/2009/08/29/293118.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/luolin/comments/commentRss/293118.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/luolin/services/trackbacks/293118.html</trackback:ping><description><![CDATA[在英文里Q动语不能直接做主语Q要变ؓ动名词或者不定式短语?br /> 例如Q?br /> Working with him is interesting.<br /> To learn engish with peter is fan.<br /> 动名词用于做有经验的事情?br /> 不定式用于没有实现的事情Q例如计划,设想{?br /> <br /> 如果不定式短语做Z语过长,可以虚的主语Qit来代替,不定式短语放在句?br /> 例如Q?br /> It it my plan to study aboard with very good friend of mine whose call jone.<br /> <br /> 中文里可以用句子做主语,而英文里不可以,要将句子变ؓ名词从句?br /> 句子前面加一个连词thatQ构成名词从句?br /> 例如Q?br /> That she loves me is ture.<br /> That he doesn't agree with me makes me angry.<br /> It makes me angry that he doesn't agree with me.<br /> <img src ="http://www.aygfsteel.com/luolin/aggbug/293118.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/luolin/" target="_blank">在从未放弃的路上</a> 2009-08-29 20:37 <a href="http://www.aygfsteel.com/luolin/archive/2009/08/29/293118.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MW记Q重构_改善既有代码设计_W八章重新组l数据)http://www.aygfsteel.com/luolin/archive/2009/08/18/291213.html在从未放弃的路上在从未放弃的路上Tue, 18 Aug 2009 13:02:00 GMThttp://www.aygfsteel.com/luolin/archive/2009/08/18/291213.htmlhttp://www.aygfsteel.com/luolin/comments/291213.htmlhttp://www.aygfsteel.com/luolin/archive/2009/08/18/291213.html#Feedback0http://www.aygfsteel.com/luolin/comments/commentRss/291213.htmlhttp://www.aygfsteel.com/luolin/services/trackbacks/291213.html1.Self Encapsulate Field

个field建立getting/setting method,q且只通过q些函数来访问field.
例:
privte int low,high;
boolean includes(int arg){
    return arg>=low&&arg<=high;
}
重构为:
private int low,high;
boolean includes(int arg){
    return arg>=getLow()&&arg<=getHigh();
}
int getLow(){return low;}
int getHigh(){return high;}

2.Replace Data Value with Object
一个数据项变成一个对象?br /> 3.Change Value to Reference
这个实值对象变成一个引用对象?br /> 4.Change Reference to Value
一个引用对象变成实值对象?br /> 例:
Class Currency{
private String code;
public String getCode()}
    return code;
}
private Currency(String code){
    this.code=code;
}
}
5.Replace Array with Object
以对象替换数l,对于数组中的每个元素Q以一个值域表示之?br /> 例:
String[] row=new String[3];
row[0]="Liverpool";
row[1]="15";
重构为:
Performance row=new Performance();
row.setName("Liverpool");
row.setWins("15");
6.Duplicate Observed Data
7.Change Unidirectional Association to Bidirectional
8.Change Bidirectional Association to Unidirectional


]]>
设计模式Q抽象工厂)http://www.aygfsteel.com/luolin/archive/2009/08/18/291573.html在从未放弃的路上在从未放弃的路上Tue, 18 Aug 2009 13:01:00 GMThttp://www.aygfsteel.com/luolin/archive/2009/08/18/291573.htmlhttp://www.aygfsteel.com/luolin/comments/291573.htmlhttp://www.aygfsteel.com/luolin/archive/2009/08/18/291573.html#Feedback0http://www.aygfsteel.com/luolin/comments/commentRss/291573.htmlhttp://www.aygfsteel.com/luolin/services/trackbacks/291573.html 通过工厂cd建某一对象Q而不是直接用new关键字?br /> public class Computer(){
}
public class NoteBookComputer extends Computer(){
}
public abstract class ComputerFactory(){
    public abstract Computer createComputer();
}
public class NoteBookComputerFactory extends ComputerFactory{
     public Computer createComputer() {
         return new NoteBookComputer();
    }
}
client code:
ComputerFactory factory=new NoteBookComputerFactory();
Computer noteBook=factory.createComputer();


]]>
设计模式Q单例模式)http://www.aygfsteel.com/luolin/archive/2009/08/17/291551.html在从未放弃的路上在从未放弃的路上Mon, 17 Aug 2009 14:32:00 GMThttp://www.aygfsteel.com/luolin/archive/2009/08/17/291551.htmlhttp://www.aygfsteel.com/luolin/comments/291551.htmlhttp://www.aygfsteel.com/luolin/archive/2009/08/17/291551.html#Feedback0http://www.aygfsteel.com/luolin/comments/commentRss/291551.htmlhttp://www.aygfsteel.com/luolin/services/trackbacks/291551.html1.Singleton(单例模式)
一个类在系l中只存在一个实例,q提供该实例的全局讉K炏V?br /> 样例代码Qlazy-loadQ?br /> public class Singleton {
 private static Singleton instance;
 private Singleton(){
  
 }
 public static synchronized Singleton getInstance(){
  if(instance==null)
   instance=new Singleton();
  return instance;
 }
}
or
public class Singleton(){
    public static final Singleton instance=new Singleton();
    private Singleton(){
    }
}

 



]]>
C++数据cdhttp://www.aygfsteel.com/luolin/archive/2007/09/29/149404.html在从未放弃的路上在从未放弃的路上Fri, 28 Sep 2007 17:38:00 GMThttp://www.aygfsteel.com/luolin/archive/2007/09/29/149404.htmlhttp://www.aygfsteel.com/luolin/comments/149404.htmlhttp://www.aygfsteel.com/luolin/archive/2007/09/29/149404.html#Feedback0http://www.aygfsteel.com/luolin/comments/commentRss/149404.htmlhttp://www.aygfsteel.com/luolin/services/trackbacks/149404.html1.文字帔R(literal constant)
     char,int,short,long,float,double,long double,boolean
 for example: 128u,1024L,7LU,3.14f,'a',"aa",true
转义序列Q一部分不可打印的字W,如换行,制表Q单引号Q双引号{?br /> (\n,\t,,\v,\b,\r,\f,\a,\\,\?,\',\")
宽字W文字:字符文字前面加上LQ例QL'a'。宽字符帔R用来支持某些语言的字W集合如汉语Q日语这些语a中的某些字符不能用单个字W来表示?br /> 2.变量
C++k中的每个W号变量都与一个特定的数据cd相关联,q个cd军_了相兛_存的大小Q布局Q能够存储在该内存区的值的范围以及可以应用其上的操作集?/p>

例如Q?br />           int student_count;
          double salary;
          bool on_loan;
          string street_address;
          char delimiter;
变量和文字常量都有存储区Qƈ且有相关的类型。区别在于变量是可寻址的?br /> 每个变量Q都有两个|
         1.数据|存储于某个内存地址中。被UCؓ叛_|卌d的倹{文字常量和变量都可被用作右倹{?br />          2.地址|存储数据值的那块内存的地址。它有时被称为变量的左|即位|倹{文字常量不能被用作左倹{?br /> 在C++中,E序在用之前必d知道该对象。可以通过对象声明来实玎ͼ它的作用是ɽE序知道该对象的cd和名字。由关键字extern以及跟在后面的对象类型以及对象的名字构成。声明不是定义,不会引v内存分配。一个程序只能包含一个对象的一个定义,却可以包含Q意数目的对象声明。可声明放于头文g中?/p> 变量名可由数字,字母Q下划线l成。以字母或下划线开_区分大小写。对长度不限制。不能用C++的关键字。在实际开发中Q变量名通常取代表实际含义的英文字母?br /> 对象的定?br /> cd指示W?名字,分号l束。例如:unsigned long distance;
如果变量是在全局域定义的Q系l提供初始?。如果是局部域的,或是通过new表达式动态分配的Q系l不提供初始?。这L对象是未初始化的Q它们不是没有|而是未定义?br /> C++支持两种形式的初始化?br /> 一U是使用赋值操作符的显式语法Ş式:int ival=1024;
W二U是隐式形式Qint ival(1024);
每种内置数据cd都支持一U特D的构造函数语法,可将对象初始化ؓ0。例Qint ival=int();
对象可以用Q意复杂的表达式来初始化,包括函数的返回倹{?br /> 指针
指针持有另一个对象的地址Q我们能够间接地操作这个对象?br /> 通过在标识符前加一个解引用操作W?*)来定义指针。例Q?br /> int *p1,p2;
complex<double> *cp;
当指针持?值时Q表明它没有指向M对象Q或持有一个同cd的数据对象的地址?br /> I?void*)cd指针Q它可以被Q何数据指针类型的地址D?函数指针不能赋值给?.
不能操作I类型指针所指向的对象,只能传送该地址值或它与其他地址g比较?br /> C++提供了解引用操作W?*)来间接地d写指针所指向的对象?br /> int ival=1024;
int *pi=&ival;
int **ppi=&pi;ppi是指向int指针pi的指针?br /> int *pi2=*ppi;
要访问到ivalQ需要两ơ解引用ppi.*ppi
指针可以让它的地址值增加或减少一个整数倹{称为指针的式q算。典型用法是遍历一个数l?br /> 字符串类?br /> C风格字符?br />


]]>
վ֩ģ壺 | ̨| | ˳| ʳ| | | | | ɽ| | | | ˾| | ӽ| ˳| ʯ| | | ۶| «ɽ| ȳ| | | | | | | | Դ| | Ӣ| ɽ| | | | Ϫ| ƽ| | |