请大家赏识我,并讲解给我听
main() { printf(" Hello World ! "); /* Display English */ printf(" 世界,你好! "); /* 显示中文 */ printf("\n"); /* 换行 */ system("pause"); /* 暂停 */ return 0; }
/*program name NONAME.exe */ #include <stdio.h> #include <stdlib.h> main(int argc, char * argv[], char * env[]) { int i; prinft("These are the %d command - line arguments passed to main:\n\n", argc); for (i=0; i<=argc; i++) printf("argv[%d]:%s\n",i,argv[i]); printf("\nThe environment string(s)on this system are:\n\n"); for(i=0; env[i]!=NULL; i++) printf(" env[%d]:%s\n", i, env[i]); }
Main 应用以及解释
各位朋友,希望你们能教我如何编C语言;我想做一位发明家!