• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            The Fourth Dimension Space

            枯葉北風寒,忽然年以殘,念往昔,語默心酸。二十光陰無一物,韶光賤,寐難安; 不畏形影單,道途阻且慢,哪曲折,如渡飛湍。斬浪劈波酬壯志,同把酒,共言歡! -如夢令

            自學筆記整理

            //test.cs
            using System;
            class Student: IComparable
            {
            string name;
            int Grade;
            bool Listen;
            public Student(string n)
            {
            name = n;
            Grade = 0;
            Listen = false;
            }
            public void print()
            {
            Console.WriteLine(name);
            }
            public string getname()
            {
            return name;
            }
            #region 
            public int CompareTo(Student b)
            {
            return this.name.CompareTo(b.getname());
            }
            #endregion
            static void Main(string[] args)
            {
            }
            }
            //prog.cs
            class Program
            {
            static void Main(string[] args)
            {
            Student a = new Student ("aa");
            Student b = new Student ("bb");
            Swap(ref a, ref b);
            a.print();
            b.print();
            }
            static void Swap(ref Student a , ref Student b)
            {
            Student tem = a;
            a = b;
            b = tem;
            Student[] stu = new Student[5];
            stu[0] = new Student("bb");
            stu[1] = new Student("aa");
            stu[2] = new Student("dd");
                  stu[3] = new Student("cc");
            stu[4] = new Student("ee");
            foreach(Student s in stu)
            s.print();
            var stu2 = stu.Orderby(o=>o.name);
            foreach(Student s in stu2)
            s.print();
            }
            }
            //public class Cmp : IComparer<Student>
            //{
            // int IComparer<Student>.Compare(Student a, Student b)
            // {
            // return a.getname()< b.getname();
            // }
            //}

            #include<iostream>
            #include
            <cstdio>
            #include
            <cstdlib>
            #include
            <sstream>
            #include
            <string>
            #include
            <sys/types.h>
            #include
            <sys/wait.h>
                                                            
            using namespace std;

            const int MAXN = 1000;
            char hostname[MAXN];
            char pathname[MAXN];
            string cmline;
            string cm1;
            string cm2;
            int main()
            {
                cout
            <<"------------------strat of SHELL program---------------------"<<endl;
                

                
            while(true)    
                
            {
                    istringstream scin(cmline);
                    gethostname(hostname,MAXN);
                    getcwd(pathname,MAXN);
                    printf(
            "%s %s $ ",hostname,pathname);
                    
            int status;
                    getline(cin,cmline);
                    scin
            >>cm1;
                    getline(scin,cm2);
                    cout
            <<cmline<<endl;
                    cout
            <<cm1<<endl;
                    cout
            <<cm2<<endl;
                    
            if(cm1=="cd")
                    
            {
                        system(cmline.c_str());
                        cout
            <<cmline<<endl;
                        
            continue;
                    }

                    
            if(fork()!=0)
                    
            {
                        waitpid(
            -1,&status,0);    
                    }

                    
            else
                    
            {

                
            //        cout<<cm1<<endl;
                
            //        cout<<cm2<<endl;
                
            //        system("ls -l");
                        system((cmline).c_str());
                    }

                }


                cout
            <<"-------------------end of SHELL program----------------------"<<endl;
                
            return 0;

            }


            package testcase;

            import static org.junit.Assert.*;

            import org.junit.Test;

            import demo.test;

            public class mytest {
                
                @Test
                public void testAdd() {
                    
                    assertEquals(5.0,test.add(2, 3), 0.0);
                }
                
                @Test
                public void another() {
                    
                    assertEquals(1.0,test.add(2, 3), 0.0);
                }
            }

             package demo;


            public class test {
                public static int add(int a,int b)
                {
                    
                    return a+b;
                }
                    
                
            }

            posted on 2014-09-02 23:27 abilitytao 閱讀(230) 評論(0)  編輯 收藏 引用

            日本人妻丰满熟妇久久久久久 | 亚洲午夜久久久久妓女影院 | 伊人色综合久久天天人手人婷| 久久这里有精品视频| 亚洲国产成人久久精品99| 亚洲人成网亚洲欧洲无码久久 | 久久国产乱子伦精品免费强| 国产精品久久久天天影视| 国内精品久久国产大陆| 久久亚洲国产成人精品无码区| 伊人久久精品影院| 国产99精品久久| 色狠狠久久综合网| 久久亚洲精品视频| 国产成人精品三上悠亚久久| 国产精品欧美久久久久无广告| 青青草原综合久久大伊人| 久久99国产精品一区二区| 香蕉久久影院| 精品一区二区久久久久久久网站| 亚洲综合久久夜AV | 亚洲国产精品婷婷久久| 久久人人爽人人人人片av| 91精品观看91久久久久久 | 蜜桃麻豆www久久| 亚洲av伊人久久综合密臀性色| 国产精品女同一区二区久久| 国产精品久久久久影视不卡| 性色欲网站人妻丰满中文久久不卡| 日日狠狠久久偷偷色综合免费| 久久亚洲国产午夜精品理论片| 99久久精品国内| 久久精品www人人爽人人| 亚洲国产欧美国产综合久久| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区| 国产精品久久久久久| 99国产欧美精品久久久蜜芽| 久久亚洲精品成人av无码网站| 久久www免费人成看片| 久久亚洲国产精品成人AV秋霞| 亚洲欧美另类日本久久国产真实乱对白|