简体   繁体   English

netbeans中的命令行参数

[英]Command line parameters in netbeans

I want to run my program as if I was running it using a terminal. 我想像在终端上运行程序一样运行程序。 Because I want to do different things depending on what attributes the user of the program provides while running it. 因为我想根据程序的用户在运行程序时提供的属性来做不同的事情。 Is there any way to do that in netbeans? 在netbeans中有什么方法可以做到这一点?

See this tutorial which explains how to specify command line arguments for a C++ project in Netbeans 7.2 . 请参阅本教程,该教程说明了如何在Netbeans 7.2中为C ++项目指定命令行参数

It works very similarly to Java, in that you right-click the project, select Properties, then the Run page, then set the command line options you want to feed your application when running it in Netbeans. 它的工作方式与Java非常相似,在项目中右键单击,选择“属性”,然后选择“运行”页面,然后设置要在Netbeans中运行应用程序的命令行选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM