system函数不能内嵌吗?
system函数不能内嵌吗?
#include<stdio.h>
main()
{
char showString(char *p);
int i;
char *cmd[]={"echo eifjie","dir c:\\ /w/a","j:","cd\\legend","play.bat"};
for(i=0;*cmd[i];i++) system("showString(cmd[i])"); /*不能内嵌吗?*/
printf("END"); getch(); }
char showString(char *p) { return (*p); }