命令行参数
本帖最后由 whypro 于 2010-5-26 18:30 编辑#include <iostream>
using namespace std;
int main( int argc,
char *argv[],
char *envp[] )
{
int count;
cout << "\命令行参数:\n";
for( count = 0; count < argc; count++ )
cout << "argv[" << count << "] " << argv << "\n";
}
输出
argv
argv
argv
"abc" d e
abc
d
E
a\\\b d"e f"g h
a\\\b
de fg
H
a\\\"b c d
a\"b
c
D
a\\\\"b c" d e
a\\b c
d
E
页:
[1]