]> 4ch.mooo.com Git - 16.git/commitdiff
wwww ftest test~
authorsparky4 <sparky4@cock.li>
Mon, 22 Jun 2015 19:16:08 +0000 (14:16 -0500)
committersparky4 <sparky4@cock.li>
Mon, 22 Jun 2015 19:16:08 +0000 (14:16 -0500)
FTEST.EXE
src/FTEST.C

index 15bcc371892880c112b5239e685e278492efdc0e..dd77f6a634f83d1445519c82a66d02a863e82cdc 100644 (file)
Binary files a/FTEST.EXE and b/FTEST.EXE differ
index 9641ba114653a711ab283cef66799fa5d33f6360..3ec8940a1162a4be87ca3f1a78f2096e2978bff3 100644 (file)
@@ -43,27 +43,33 @@ void main(int argc, char *argv[])
     printf("Character: ");\r
     scanf("%c", &c);\r
 \r
+       if(*argv[1]!=NULL)\r
        switch(*argv[1])\r
        {\r
-                       case 0:\r
-                               t=0;\r
-                               w=14;\r
-                       break;\r
-                       case 1:\r
-                               t=1;\r
-                               w=8;\r
-                       break;\r
-                       case 2:\r
-                               t=2;\r
-                               w=8;\r
-                       break;\r
-                       case 3:\r
-                               t=3;\r
-                               w=16;\r
-                       break;\r
-                       default:\r
-                               t=3;\r
-                               w=16;\r
+               case 0:\r
+                       t=0;\r
+                       w=14;\r
+               break;\r
+               case 1:\r
+                       t=1;\r
+                       w=8;\r
+               break;\r
+               case 2:\r
+                       t=2;\r
+                       w=8;\r
+               break;\r
+               case 3:\r
+                       t=3;\r
+                       w=16;\r
+               break;\r
+               default:\r
+                       t=3;\r
+                       w=16;\r
+       }\r
+       else\r
+       {\r
+               t=3;\r
+               w=16;   \r
        }\r
 \r
 \r