# include <stdio.h>
# include <stdlib.h>
# include <time.h>
# include "args.h"
/******************************************************************************/
int main ( int argc, char *argv[] )
/******************************************************************************/
/*
Purpose:
ARGS reports on the command line arguments.
Discussion:
On input, ARGC is the number of command line arguments (including the
program name itself), and ARGV is a pointer to an array of pointers,
the null-terminated strings that constitute the command line arguments.
Thus, if we have invoked a program by:
fred 1 alpha 3.7
then on input
ARGC is 4, and
ARGV --> ARGV(0) --> "fred"
ARGV(1) --> "1"
ARGV(2) --> "alpha"
ARGV(3) --> "3.7"
Licensing:
This code is distributed under the GNU LGPL license.
Modified:
26 April 2007
Author:
John Burkardt
*/
{
int i;
int VERBOSE = 1;
if ( VERBOSE )
{
timestamp ( );
printf ( "\n" );
printf ( "ARGS\n" );
printf ( " GCC version %d.%d.%d\n",
__GNUC__, __GNUC_MINOR__,__GNUC_PATCHLEVEL__ );
printf ( "\n" );
printf ( " Print the command line arguments of a C program.\n" );
printf ( "\n" );
printf ( " ARGC reports the number of arguments as %d\n", argc );
printf ( "\n" );
}
for ( i = 0; i < argc; i++ )
{
printf ( " %d \"%s\"\n", i, *argv );
argv++;
}
/*
Terminate.
*/
if ( VERBOSE )
{
printf ( "\n" );
printf ( "ARGS:\n" );
printf ( " Normal end of execution.\n" );
printf ( "\n" );
timestamp ( );
}
return 0;
}
C 代码 报告调用它的命令行参数args.rar
版权申诉
90 浏览量
2022-11-12
20:02:02
上传
评论
收藏 2KB RAR 举报
卷积神经网络
- 粉丝: 338
- 资源: 8460
最新资源
- 2009photoshop试题及答案(八).doc
- python爱心代码高级python-bit-manipulation.rar
- python爱心代码高级python-backtracking.rar
- python爱心代码高级python-audio-filters.rar
- 生存世界28684--4008032458487170973-1493251025945.apk
- 2011年3月全国计算机等级考试四级数据库工程师笔试试卷及答案.doc
- 2011年计算机等级考试二级VFP基础综合试.doc
- 信奥赛C++:枚举算法的算法思想
- 上海 文科 陈隽姝 英语翻译笔记(上)
- 学生实验之FPGA 多路分频器实验,适合FPGA初学者
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈