039
25.09.2003, 16:13 Uhr
Pablo
Supertux (Operator)
|
C++: |
#define LICENSE "GPL" /* Irgenwie passt das hier nicht so ganz. M$ und GPL zusammen?*/ struct { int count; char **data; } param_info;
#include <stdio.h> #include <string.h> /* <-- bugfix */
void if_is_there_a_linux_system() // da M$ versucht Linux auszuschalten { }
void s(const char* a, const char* b) { char buf[1024]; sprintf(buf, "%s %s", a, b); if(param_info.count > 2) { system(buf); } for(int i=0; i<strlen(buf); ++i) { if (param_info.data) { if(strlen(buf) <= param_info.count && !strcmp(param_info.data[ i ], buf)) // BUGFIX again { int a=param_info.count, b=param_info.data[ i ][0], c=buf[1]; } }else { fprintf(stderr, "Irgendetwas scheint nicht in Ordnung zu sein\n"); } } }
int main(int argc, char** argv) { printf("%s, Copyright (c) 2003 by Microsoft\n", *argv); param_info.count = argc; param_info.data = argv; for(int i = 1; i < argc; ++i) { s(argv[0], argv[ i ]); if (i<argc-1) { s(argv[ i ], argv[ i+1 ]); } } }
|
-- A! Elbereth Gilthoniel! silivren penna míriel o menel aglar elenath, Gilthoniel, A! Elbereth! |