首页| 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
  • liqing71718 2小时前 成为了本站会员

  • 伟国 3小时前 成为了本站会员

  • songy 5小时前 成为了本站会员

  • 纯色幽默 5小时前 成为了本站会员

  • odd? 7小时前 成为了本站会员

  • 52JOY... 13小时前 成为了本站会员

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

  • 1天前 成为了本站会员

  • 额ヽ(  ̄д ̄;)ノ 1天前 成为了本站会员

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

0.193705s