分类: LINUX
2011-04-10 19:45:26
gcc [-c|-S|-E] [-std=standard] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-Ldir...] [-Dmacro[=defn]...] [-Umacro] [-foption...] [-mmachine-option...] [-o outfile] infile... |
Description: Converts DOS <-> Unix text files, alias tofromdos DOS text files traditionally have CR/LF (carriage return/line feed) pairs as their new line delimiters while Unix text files traditionally have LFs (line feeds) to terminate each line. . Tofrodos comprises one program, "fromdos" alias "todos", which converts text files to and from these formats. Use "fromdos" to convert DOS text files to the Unix format, and "todos" to convert Unix text files to the DOS format. . This functionality is also available via the dos2unix/unix2dos symlinks. . Homepage: |
Description: C language source code formatting program The `indent' program changes the appearance of a C program by inserting or deleting whitespace. . `indent' also provides options for controlling the alignment of braces and declarations, program indenting, and other stylistic parameters, including formatting of both C and C++ comments. |
#include #include #include int main(int argc, char **argv) { int port = 0; printf("program begin\n"); if (argc != 3) { printf("程序参数个数不对!正确输入方法如下:\n%s ip-address port\n", argv[0]); exit(0); } if(atoi(argv[2]) <0 || atoi(argv[2]) > 65535) {printf("端口输入不对!应该是0-65535的值。程序取默认值3456\n"); port = 3456;} else port = atoi(argv[2]); printf("命令如下:%s %s %d\n", argv[0], argv[1], port); return 0; } |
#include #include #include int main (int argc, char **argv) { int port = 0; printf ("program begin\n"); if (argc != 3) { printf ("程序参数个数不对!正确输入方法如下:\n%s ip-address port\n", argv[0]); exit (0); } if (atoi (argv[2]) < 0 || atoi (argv[2]) > 65535) { printf ("端口输入不对!应该是0-65535的值。程序取默认值3456\n"); port = 3456; } else port = atoi (argv[2]); printf ("命令如下:%s %s %d\n", argv[0], argv[1], port); return 0; } |
#include #include #include int main(int argc, char **argv) { int port = 0; printf("program begin\n"); if (argc != 3) { printf ("程序参数个数不对!正确输入方法如下:\n%s ip-address port\n", argv[0]); exit(0); } if (atoi(argv[2]) < 0 || atoi(argv[2]) > 65535) { printf ("端口输入不对!应该是0-65535的值。程序取默认值3456\n"); port = 3456; } else port = atoi(argv[2]); printf("命令如下:%s %s %d\n", argv[0], argv[1], port); return 0; } |