-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* Copyright (C) 2023 Harry Clark - Student No. 12340530 */ | ||
/* Date: 11/01/23 */ | ||
|
||
#pragma once | ||
|
||
#ifndef CHAR | ||
#define CHAR | ||
|
||
char myVariable = '@'; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* Copyright (C) 2023 Harry Clark - Student No. 12340530 */ | ||
/* Date: 11/01/23 */ | ||
|
||
#pragma once | ||
|
||
#ifndef BOOL_RETURN | ||
#define BOOL_RETURN | ||
|
||
#include <iostream> | ||
|
||
#define TENARY_VER | ||
bool is_answer(int value) | ||
{ | ||
return value == 42 ? true : false; | ||
} | ||
|
||
#define IF_ELSE_VER | ||
bool is_answer(int value) | ||
{ | ||
if (value == 42) | ||
{ | ||
return true; | ||
} | ||
|
||
else | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
#define SIMPLIFIED | ||
bool is_answer(int value) | ||
{ | ||
return value == 42; | ||
} | ||
|
||
#endif |