Skip to content
Permalink
d410164a78
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
37 lines (29 sloc) 476 Bytes
/* 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