• <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 閱讀(226) 評論(0)  編輯 收藏 引用

            久久国产高潮流白浆免费观看| 久久精品一本到99热免费| 国产精品熟女福利久久AV| 久久久九九有精品国产| 国产激情久久久久影院老熟女| 久久久久人妻一区精品| 精品综合久久久久久97| 99精品久久精品一区二区| 武侠古典久久婷婷狼人伊人| 亚洲综合日韩久久成人AV| 久久精品这里只有精99品| 国产69精品久久久久9999APGF| 久久se精品一区精品二区| 日本高清无卡码一区二区久久| 久久久亚洲欧洲日产国码aⅴ| 国产精品久久久久久久久久免费| 亚洲色欲久久久久综合网| 亚洲狠狠综合久久| 久久笫一福利免费导航 | 久久国产精品无码网站| 亚洲中文精品久久久久久不卡| 狠狠色丁香婷婷综合久久来| 久久久精品国产免大香伊| 岛国搬运www久久| 97久久久久人妻精品专区| 久久亚洲av无码精品浪潮| 青青草国产成人久久91网| 久久国产高潮流白浆免费观看| 亚洲欧美日韩中文久久| 亚洲国产综合久久天堂| 久久午夜综合久久| 一本大道久久a久久精品综合| 91精品国产综合久久精品| 亚洲AV无码久久精品蜜桃| 99久久国产综合精品女同图片| 武侠古典久久婷婷狼人伊人| 色综合久久天天综线观看| 亚洲国产成人久久笫一页| 色天使久久综合网天天| 久久这里有精品视频| 亚洲精品视频久久久|