将项目作为参数传递给我的合并排序链接列表程序

时间:2016-05-20 23:58:15

标签: c# list

大家好,我对我的程序测试有疑问。我如何在main()中填充参数; IList testas = new List();现在它是空的,程序运行没有错误。任何答案都将是一个巨大的帮助,谢谢。

            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-sidebar-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Home<span style="font-size:16px;" class="pull-right hidden-xs showopacity glyphicon glyphicon-home"></span></a></li>

                </ul>
            </div>
        </div>
    </nav>

<center class="main">

    <div class="container" ng-controller="card-set-controller" ng-init="getAllSets()">
        <form ng-hide ="hideVar" action="#" method="get" style="margin-top:75px; margin-bottom:75px">
            <div class="col-md-6 input-group has-feedback">
                <input class="form-control" id="system-search" placeholder="Search Flashcard Sets">
                <i class="glyphicon glyphicon-search form-control-feedback"></i>
            </div>
        </form>

        <table ng-hide ="hideVar" class="table table-hover table-responsive table-list-search">

            <tbody>

            <tr class="active" ng-repeat="set in sets">
                <td><a href="" ng-click="redirectSearchCardUrl(set.setIdNum, set.Name)">{{set.Name}}</a></td>
            </tr>
            </tbody>
        </table>
    </div>
    </center>

1 个答案:

答案 0 :(得分:0)

string[] args

是一个空格分隔的输入,在您的控制台上必须编写类似

的内容
> miprogram.exe value1 4 other_value

将导致参数输入

args[0] wil be equals to "value1"
args[1] wil be equals to "4"
args[2] wil be equals to "other_value"

你可以演员并做各种各样的事情。

希望有所帮助