摘要: 1.首先介绍下C程序main函数的两个参数的含义。1 #include<stdio.h>2 int main(int argc, char * argv[])3 {4 int i;5 for (i=0; i < argc; i++)6 printf("Argument %d is %s.\n", i, argv[i]);7 8 return 0;9 }假设该程序名称为:hello.c,在Linux下gcc hello.c -o hello编译成hello可执行文件。在php中执行下面操作.<?php $command='hello a b c 阅读全文
posted @ 2013-05-28 19:05 SallyBin 阅读(623) 评论(0) 推荐(0)