首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到19条相似文献,搜索用时 78 毫秒
1.
刘川 《电脑》1994,(3):60-63
Ⅱ、命令行参数处理功能的扩充 原程序的命令行参数处理程序只有处理文件名参数的功能,当命令行上有文件名参数时将其滤去空格之后取代默认的文件名README。  相似文献   

2.
一、命令行参数之处理 许多应用软件在运行时都带有命令行参数,在程序设计中灵活地采用命令行参数可以有效地提高程序的运行效率,收到事半功倍的效果。 在C语言中,对命令行参数的处理涉及到程序主函数main的两个参数(int argc和char * argv[])的处理。其中,argc表示命令行参数的个数(包括可执行程序名本身),argv[]为指向每个参数的指  相似文献   

3.
在许多应用软件运行时都带有命令行参数,这些命令行参数在C语言编写的程序中也可以实现,灵活地运用命令行参数进行处理可以有效地提高程序的运行效率,收到事半功倍的效果。详细分析了C语言编程技巧在C语言学习中的应用。  相似文献   

4.
运用Ghost的命令行参数,可以简化操作过程。本文对各种命令行参数的使用作了一番简要的介绍,并以实例加以说明。  相似文献   

5.
MFC中命令行参数处理的实现   总被引:1,自引:0,他引:1  
论述了在MFC中处理命令行参数的三种方法,给出了一个具体实例。  相似文献   

6.
《软件》2002,(9):79-79
获取程序运行的命令行参数是非常有用处的。调用VCL的Parastr()函数可以获取参数,调用ParamCount()函数可以知道有多少个命令行参数传递给了应用程序。 ParamStr需要一个整数参数并且返回—个AnsiString对象。若参数为0,ParamStr将返回可执行文件的全称路径。若参数为1,将返回程序名及第一个命令行参数。若参数为2,将返回第二个参数,等等。作为一个实践,开启一个新的项目,在主窗口上放置5个Label,将下面的代码添加到窗口的构造函数中:  相似文献   

7.
本文依据DOS命令解释程序COMMAND.COM可个有命令行参数的特点,给出了在C程序中使用DOS内部命令的一种简便、高效的方法。方法是通过调用C函数system或spawnl加载带有命令行参数的COMMAND.COM实现的,文后给出了示例程序。  相似文献   

8.
《大众软件》2010,(14):46-47
最早用过DOS系统的朋友一定还记得,要做资源管理,几乎一定会以“dir[/p][/w]”这样的命令行开始(其意义是列出当前目录下的文件和文件夹,后面两个参数分别对应现在的“详细信息”与“列表”)。随着操作系统的不断发展,这些简陋复杂的命令行一去不返,  相似文献   

9.
《计算机与网络》2013,(20):31-31
批处理参数扩展变量(%0到%9)。当在批处理文件中使用批处理参数时,%0将由批处理文件名替换,而%1到%9将由在命令行键入的相应参数替换。  相似文献   

10.
《个人电脑》2000,6(4):144-145
让Windows资源管理器按你的方式工作,命令行的开关参数是关键。不管你用的是微软的Windows 95,Windows 98,还是Windows NT 40,都会使用  相似文献   

11.
Software usage models are the basis for statistical testing. They derive their structure from specifications and their probabilities from evolving knowledge about the intended use of the software product. The evolving knowledge comes from developers, customers and testers of the software system in the form of relationships that should hold among the parameters of a model. When software usage models are encoded as Markov chains, their structure can be represented by a system of linear constraints, and many of the evolving relationships among model parameters can be represented by convex constraints. Given a Markov chain usage model as a system of convex constraints, mathematical programming can be used to generate the Markov chain transition probabilities that represent a specific software usage model.  相似文献   

12.
密码子用法可以简介为物种、基因组、基因或序列集中64种密码子的使用方式。密码子用法的可视化为研究样本的密码子用法特征、不同样本间的密码子偏好,提供了1种直观、有效的图形化手段。可基于多种参数的对应分析(CA)法是其中1种重要的可视化方法。在本文中,以果蝇、人类、拟南芥、酿酒酵母、线虫、大肠杆菌、枯草芽孢杆菌及除虫链霉菌8个物种的密码子用法数据为例,通过比较密码子实际出现次数(Number)、密码子用法频率(F1000)、密码子用法分值(Fraction)、相对适应度(RA)与相对同义密码子用法(RSCU)5种参数的可视化结果,得到如下初步结论:(1)不论采用5种参数中的哪1种,65维(一维物种+64维密码子)的数据都可通过CA降维为7维,而此时的累计惯量为100%,即完全还原原数据集中的所有信息;(2)采用密码子平均用法(F1000)是1个较好的选择,其前二维的累计惯量可以达到83.6%,但是基于Fraction可以获得更高的累计惯量,达到85.1%,Number、RSCU次之,在考虑计算量的情况下,选择Number也可以获得失真度较小的结果,RA参数的最低,仅有76.9%。  相似文献   

13.
Real-time embedded systems (RTESs) operating in safety-critical domains have to satisfy strict performance requirements in terms of task deadlines, response time, and CPU usage. Two of the main factors affecting the satisfaction of these requirements are the configuration parameters regulating how the system interacts with hardware devices, and the external events triggering the system tasks. In particular, it is necessary to carefully tune the parameters in order to ensure a satisfactory trade-off between responsiveness and usage of computational resources, and also to stress test the system with worst-case inputs likely to violate the requirements. Performance tuning and stress testing are usually manual, time-consuming, and error-prone processes, because the system parameters and input values range in a large domain, and their impact over performance is hard to predict without executing the system. In this paper, we provide an approach, based on UML/MARTE, to support the generation of system configurations predicted to achieve a satisfactory trade-off between response time and CPU usage, and stress test cases that push the system tasks to violate their deadlines. First, we devise a conceptual model that specifies the abstractions required for analyzing task deadlines, response time, and CPU usage, and provide a mapping between these abstractions and UML/MARTE. Then, we prune the UML/MARTE metamodel to only contain a purpose-specific subset of entities needed to support performance tuning and stress testing. The pruned version is a supertype of UML/MARTE, which ensures that all instances of the pruned metamodel are also instances of UML/MARTE. Finally, we cast the generation of configurations and stress test cases as two constrained optimization problems (COPs) over our conceptual model. The input data for these COPs in automatically generated via a model-to-text (M2T) transformation from models specified in the pruned UML/MARTE metamodel to the Optimization Programming Language. We validate our approach in a safety-critical RTES from the maritime and energy domain, showing that (1) our conceptual model can be applied in an industrial setting with reasonable effort, and (2) the optimization problems effectively identify configurations predicted to minimize response time and CPU usage, and stress test cases that maximize deadline misses. Based on our experience, we highlight challenges and potential issues to be aware of when using UML/MARTE to support performance tuning and stress testing in an industrial context.  相似文献   

14.
In this paper, we review three experiments with a mobile application that integrates graphical input with a touch-screen and a speech interface and develop a model for input modality choice in multimodal interaction. The model aims to enable simulation of multimodal human–computer interaction for automatic usability evaluation. The experimental results indicate that modality efficiency and input performance are important moderators of modality choice. Accordingly, we establish a utility-driven model that provides probability estimations of modality usage, based on the parameters of modality efficiency and input performance. Four variants of the model that differ in training data are fitted by means of Sequential Least Squares Programming. The analysis reveals a considerable fit regarding averaged modality usage. When applied to individual modality usage profiles, the accuracy decreases significantly. In an application example it is shown how the modality choice mechanism can be deployed for simulating interaction in the field of automatic usability evaluation. Results and possible limitations are discussed.  相似文献   

15.
Stability robustness of linear normal distributed parameter systems   总被引:1,自引:0,他引:1  
This paper considers the stability robustness analysis problem for linear distributed parameter systems containing known perturbation operators multiplied by uncertain parameters. The nominal system operators are assumed to be normal, but allowed to be unbounded. The perturbation operators are confined to some relative bounded set, but may be unbounded also. By using the Lyapunov stability criterion, simple bounds on uncertain parameters are derived to ensure the stability of the perturbed systems. Examples are provided to illustrate the usage of the theoretical results.  相似文献   

16.
A problem commonly faced in Computer Science research is the lack of real usage data that can be used for the validation of algorithms. This situation is particularly true and crucial in Cloud Computing. The privacy of data managed by commercial Cloud infrastructures, together with their massive scale, makes them very uncommon to be available to the research community. Due to their scale, when designing resource allocation algorithms for Cloud infrastructures, many assumptions must be made in order to make the problem tractable.This paper provides deep analysis of a cluster data trace recently released by Google and focuses on a number of questions which have not been addressed in previous studies. In particular, we describe the characteristics of job resource usage in terms of dynamics (how it varies with time), of correlation between jobs (identify daily and/or weekly patterns), and correlation inside jobs between the different resources (dependence of memory usage on CPU usage). From this analysis, we propose a way to formalize the allocation problem on such platforms, which encompasses most job features from the trace with a small set of parameters.  相似文献   

17.
针对球罐这种对使用安全和质量有较高要求的特殊容器,提出了特别适合球罐焊接加工的微机控制系统。它根据操作者输入的有关参数,自动调整焊接电流、焊接速度等主要工艺参数,使焊机始终工作在最佳状态;还能对焊丝用量和焊缝长度进行独立和累计运算。这不仅保证了球罐的生产工艺和质量要求,而且提高了焊接效率。该控制系统对其他制造业的焊接也有一定的参考价值。  相似文献   

18.
为了提高无线传感器网络中节点在多个频点工作环境下的搜索效率,提出了一种基于认知无线电技术的节点搜索算法。在分析了影响节点成功搜索的各个因素并映射这些因素到算法中相应参数的基础上,通过多种方法建立了各参数之间的联系并得出了在一定使用情况下的最优配置。算法既汲取了认知无线电中对频点利用率高、抗干扰能力强和安全性好等优点,还克服了其相对于定频通信在节点搜索能力方面的不足。  相似文献   

19.
反激式开关电源的环路分析与设计   总被引:1,自引:1,他引:0  
设计了一款反激式开关电源,依据理论计算出补偿器参数,通过实验调试证明计算参数能够使环路稳定,并接近于优化参数。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号