Hi,
Ich möchte einfach gucken, ob 'P' in der Variable pch ist. Und naja, es klappt irgendwie nicht ¬.¬
Kein Fehler, nix. Nur beim Testen (main.exe P.T) geht nix
Irgendjemand eine Idee? Ich komme echt nicht weiter![:(](https://www.vb-paradise.de/wcf/images/smilies/sad.png)
mfg
gfc
Ich möchte einfach gucken, ob 'P' in der Variable pch ist. Und naja, es klappt irgendwie nicht ¬.¬
PHP-Quellcode
- /*TYP=ConsoleApplication*/
- /*LANGUAGE=CCOMPILER*/
- #include <stdio.h>
- #include <windows.h>
- #include <string.h>
- /*
- #define A "PortA"
- #define B "PortB"
- #define C "PortC"
- #define D "PortD"
- #define E "PortE"
- #define F "PortF"
- int PORTS [6] = {A,B,C,D,E,F};
- */
- void main( int argc, char *argv[] )
- {
- HANDLE hConsole;
- hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- if (argc >> 1)
- {
- char * pch;
- pch = strtok(argv[1],".");
- switch(pch)
- {
- case 'P' :
- printf("LOL");
- /*int PORT = 0;
- while (pch != NULL)
- {
- printf("%s\n", pch);
- pch = strtok(NULL,".");
- }*/
- break;
- default :
- printf("ERROR:%s",pch);
- break;
- }
- }
- else
- {
- printf("Unknow Args");
- }
- return 0;
- }
Kein Fehler, nix. Nur beim Testen (main.exe P.T) geht nix
Irgendjemand eine Idee? Ich komme echt nicht weiter
![:(](https://www.vb-paradise.de/wcf/images/smilies/sad.png)
mfg
gfc