c-first-steps

a C playground
Index Commits Files Refs README
commit 3f3ee435d0bc8bef70f0746959d59a66e3e69351
parent d0e6438935705828cbd69fd1366eb899ec479d89
Author: Martin J. Klöckner <martin.cachari@gmail.com>
Date:   Thu, 19 Nov 2020 11:22:02 -0300

ex13.c finished

Diffstat:
D95.11/guia02/ej10.c | 39---------------------------------------
D95.11/guia02/ej14.c | 11-----------
D95.11/guia02/ej16.c | 16----------------
D95.11/guia02/ej17.c | 12------------
4 files changed, 0 insertions(+), 78 deletions(-)
diff --git a/95.11/guia02/ej10.c b/95.11/guia02/ej10.c
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-
-#define TM "3M Corporation"
-#define MAXWELL "Maxwell Corporation"
-#define SONY "Sony Corporation"
-#define VERBATIM "Verbatim Corporation"
-
-typedef enum {
-    TM_CORPORATION,
-    MAXWELL_CORPORATION,
-    SONY_CORPORATION,
-    VERBATIM_CORPORATION
-} manufacturer_t;
-
-
-int main(void) {
-    manufacturer_t c;
-    printf("Introduzca un Id. de fabricante: ");
-    c = (getchar() - '0');
-    switch(c) {
-        case TM_CORPORATION:
-            printf(TM"\n");
-            break;
-        case MAXWELL_CORPORATION:
-            printf(MAXWELL"\n");
-            break;
-        case SONY_CORPORATION:
-            printf(SONY"\n");
-            break;
-        case VERBATIM_CORPORATION:
-            printf(VERBATIM"\n");
-            break;
-        default:
-            printf("El numero ingresado no es valido\n");
-            return 1;
-    }
-    return 0;
-}
diff --git a/95.11/guia02/ej14.c b/95.11/guia02/ej14.c
@@ -1,11 +0,0 @@
-#include <stdio.h>
-
-typedef enum { 
-    1200, 2400, 4800, 9600 
-} baudrate_t;
-
-int main(void) 
-{
-    baudrate_t baudrate = 9600;
-    return 0;
-}    
diff --git a/95.11/guia02/ej16.c b/95.11/guia02/ej16.c
@@ -1,16 +0,0 @@
-#include <stdio.h>
-
-#define TRUE 0
-
-#ifdef TRUE
-    #undef TRUE
-    #define TRUE 1
-#endif
-
-int main(void) 
-{
-    printf("TRUE = %d\n", TRUE);
-    return 0;
-}
-
-
diff --git a/95.11/guia02/ej17.c b/95.11/guia02/ej17.c
@@ -1,12 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
-    #ifdef DEBUG
-        printf("DEBUGGING\n");
-    #endif
-    
-    printf("Hello world!\n");
-
-    return 0;
-}