首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 功能强大,使用printf命令行参数C / C++处理非常容易。更换为getopt。

功能强大,使用printf命令行参数C / C++处理非常容易。更换为getopt。

资 源 简 介

superGetOpt SuperGetOpt is a printf-like getopt replacement for command line argument handling. The supergetopt library makes it very easy to handle all kinds of command-line arguments in a printf()-style way. All types of command-line arguments are supported and all user-supplied values are checked for type validity. If you have been searching for an easy-to-use, flexible, portable command-line and general use parser, this is it! A Simple Example: ``` int main( int argc, char *argv[] ) { int n, argPos; float yourFloat; int yourInt; char yourString[MAX_STRING]; n = superGetOpt( argc, argv, &argPos, "-YourFlag %f%s%d", &yourFloat, yourString, &yourInt, "Help Message", NULL ); return(n); } ``` It"s that easy. No header files to create, no argument order to concern yourself with. Please read the testSuperGetOpt.c example and you"ll

文 件 列 表

supergetopt
superGetOpt.c
superGetOpt.doc
supergetopt.h
superGetOpt.html
superGetOpt.html.tex
superGetOpt.o
superGetOptOverview.html
testSuperGetOpt.c
DOCUMENTATION
Makefile

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

  • shallow 3天前 成为了本站会员

0.199633s