]]>re: 璇鋒暀http://www.shnenglu.com/GlideLiu/archive/2007/12/18/38780.html#38842glideglideTue, 18 Dec 2007 00:44:00 GMThttp://www.shnenglu.com/GlideLiu/archive/2007/12/18/38780.html#38842浣犲ソ錛屾垜璇曚簡(jiǎn)錛屾姤濡備笅鐨勯敊 cc: 1501-216 command option --with-ld is not recognized - passed to ld ld: 0706-012 The -- flag is not recognized. ld: 0706-012 The -w flag is not recognized. ld: 0706-027 The -i flag is ignored. ld: 0706-012 The -t flag is not recognized. ld: 0706-012 The -h flag is not recognized. ld: 0706-012 The -- flag is not recognized. ld: 0706-006 Cannot find or open library file: -l d ld:open(): A file or directory in the path name does not exist.
]]>re: 璁捐鑼冨紡絎旇-Compositehttp://www.shnenglu.com/GlideLiu/archive/2006/07/30/10586.html#10713鐧戒簯鐧戒簯Sun, 30 Jul 2006 15:00:00 GMThttp://www.shnenglu.com/GlideLiu/archive/2006/07/30/10586.html#10713Composite妯″紡C#瀹炵幇錛氱敤鎴峰強(qiáng)鐢ㄦ埛緇勬潈闄愯緗紝涓涓粍鍐呯殑鐢ㄦ埛鏉冮檺鐩稿悓銆? //鐢ㄦ埛鍜岀粍鐨勭埗鎺ュ彛
public interface userbase
{
void AddChild(userbase u); //娣誨姞瀛愭枃浠跺す
void SetPurview(string purview);//璁劇疆鏉冮檺
}
//鐢ㄦ埛綾? public class user : userbase
{
private string purview = "";
public void AddChild(userbase c)
{
//鐢ㄦ埛涓嬮潰娌℃湁鐢ㄦ埛錛屾墍浠ヤ負(fù)絀? }
public void SetPurview(string strPurview)
{
//璁劇疆鐢ㄦ埛鐨勬潈闄? purview = strPurview;
}
}
//鐢ㄦ埛緇勭被.
public class group : userbase
{
private ArrayList userlist = new ArrayList();
public void AddChild(userbase c) //娣誨姞鐢ㄦ埛
{
userlist.Add(c);
}
public void SetPurview(string strPurview)
{
foreach (userbase u in userlist)
u.SetPurview(strPurview);
}
}
class MyMain
{
public static void Main()
{
//鍒涘緩鐢ㄦ埛緇? group group1 = new group();//鐢ㄦ埛緇?
user user1 = new user();//鐢ㄦ埛1
user user2 = new user();//鐢ㄦ埛2
user user3 = new user();//鐢ㄦ埛3