forked from YanZhao/hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
46 lines (35 loc) · 773 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include<stdio.h>
#include<stdlib.h>
#include "myargs.h"
#include "FileNameTools.h"
#include "TxtTools.h"
/*
add some comment here. this is new modification from Texas. 11/18/2015
*/
void main(int argc,char* argv[])
{
//TestFileNameTools();
//In the beginning of main, Parse the argv.
if(ParseMyArgs(argc,argv)==1)
{
exit(1);
}
if(i->count>0)
{
TestTxtTools();
}
if(size->count >0)
{
printf("size=%d\n",size->ival[0]);
}
if(keyword->count >0)
{
printf("keyword=%s",keyword->sval[0]);
}
for (int j=0; j<files->count; j++)
printf("filename[%d] = \"%s\"\n", j, files->filename[j]);
//TestTxtTools();
//getch(); /*可以使得输出窗口停住,让你检查一下最后的输出是否正确*/
//in the end of main, call Delete MyArgs
DeleteMyArgs();
}