diff --git a/.obsidian/app.json b/.obsidian/app.json index 3595e31..83fdb69 100644 --- a/.obsidian/app.json +++ b/.obsidian/app.json @@ -2,7 +2,7 @@ "vimMode": true, "promptDelete": false, "pdfExportSettings": { - "includeName": false, + "includeName": true, "pageSize": "Letter", "landscape": false, "margin": "0", diff --git a/education/software development/ECE1400/Chapter 14 Exercises.md b/education/software development/ECE1400/Chapter 14 Exercises.md index 89d7817..d63459e 100644 --- a/education/software development/ECE1400/Chapter 14 Exercises.md +++ b/education/software development/ECE1400/Chapter 14 Exercises.md @@ -34,6 +34,17 @@ int main(void) > **15.** Suppose that a program needs to display messages in either English, French, or Spanish. Using conditional compilation, write a program fragment that displays one of the following three messages, depending on whether or not the specified macro is defined. ```c +#ifdef ENGLISH +#define MESSAGE "Insert Disk 1" +#endif +#ifdef FRENCH +#define MESSAGE "Inserez Le Disque 1" +#endif +#ifdef SPANISH +#define MESSAGE "Inserte El Disco 1" +#endif + +printf(MESSAGE); ``` \ No newline at end of file