#include "Header.h"
void story()
{
cout << "once upon a time....." << endl;
}
void introduction(string name)
{
cout << "There was a hero called " << name << endl;
}
string middle(string a, string b)
{
cout << "They had a " << a << "and killed a " << b << "using it" << endl;
}
string end(int choice)
{
switch (choice)
{
case 1: return"That is all! \n";
case 2: return"This is the tale that never ends \n";
case 3: return"Think of an ending yourself";
default: return"Can't you manage to follow instructions?";
}
}
Header.h
1 2 3 4 5 6 7 8 9 10 11
#pragma once
#include<iostream>
#include<iomanip>
#include<string>
usingnamespace std;
void story();
void introduction(string name);
string middle(string a, string b);
string end(int choice);