The main method then proceeds to delegate the parsing of the argument to a CmdLineParser object, which then returns an Options object.
main方法然后会将参数解析委托给CmdLineParser对象,后者将返回Options对象。
Let's now turn our attention to the main method. It creates an event-handler object and a parser object.
现在,让我们将注意力转向main方法。
Type into the member function Main a few lines of code to create an instance of Quad and then assert that when the object Area method is given a length of 3 and width of 2, it returns the value 6.
在主函数中输入下列几行代码,创建Quad实例,并通过Assert断言,当长宽各为3和2时,返回的结果应该是6。
应用推荐