[ create a new paste ] login | about

Project: Rennaissance
Link: http://rennaissance.codepad.org/iNOlt4ch    [ raw code | output | fork ]

pjvangemmeren - C++, pasted on May 30:
#include <iostream>
using namespace std;

int choice = 1;
int backquit = 2;

int main()
{
    cout << endl;
    cout << "\t\tWelcome to the Renaissance OS software!\n";
    cout << "Please wait while the program initializes...\n";
    cout << "\t\tWhich subject of Renaissance advancements do you want\n";
    cout << "to learn about?\n";
    cout << "1. Art\n";
    cout << "2. Architecture\n";
    cout << "3. Religion\n";
    cout << "4. Literature\n";
    cout << "5. Quit the program\n";
    cout << "Enter the number of your choice:";
    cin >> choice;
    cout << endl;

    if (choice == 1)
    {
        cout << "\t\tArt\n";
        cout << "The Renaissance affected art more than it did anything else.\n";
        cout << "Artists now focused on making their art more realistic\nthan the previous art styles.\n";
        cout << "1. Back to main menu\n";
        cout << "2. Quit the program\n";
        cin >> backquit;
        if (backquit == 1)
        {
            return 6;
        }
        else if (backquit == 2)
        {
            return 0;
        }
    }
    if (choice == 2)
    {
        cout << "\t\tArchitecture\n";
        cout << "The Renaissance affected architecture as much as it did art.\nNow, builders constructed elaborate, beautiful churches and cathedrals that were\nmore for fashion than for function.\n1. Back to main menu\n2. Quit the program";
        cin >> backquit;
        if (backquit == 1)
        {
            return 6;
        }
        else if (backquit == 2)
        {
            return 0;
        }
    }
    if (choice == 3)
    {
        cout << "\t\tReligion\n";
        cout << "The Renaissance affected religion and its role in daily life.\nNow, people thought more about the \"now and here\" instead of death and heaven.\n1. Back to main menu\n2. Quit the program\n";
        cin >> backquit;
        if (backquit == 1)
        {
            return 6;
        }
        else if (backquit == 2)
        {
            return 0;
        }
    }
    if (choice == 4)
    {
        cout << "\t\tLiterature\n";
        cout << "The Renaissance affected literature as well. Case in point, theatre.\nPerformers now made costumes and plots (storylines) which were more realistic or exciting than their predecessors.\nAlso, the Renaissance gave us the printing press and movable type,\nleading to the invention of publication.\n1. Back to main menu\n2. Quit the program\n";
        cin >> backquit;
        if (backquit == 1)
        {
            return 6;
        }
        else if (backquit == 2)
        {
            return 0;
        }
    }
    if (choice == 5)
    {
        cout << endl;
        cout << "Goodbye. Program will terminate.";
        backquit = 2;
    }
}


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

		Welcome to the Renaissance OS software!
Please wait while the program initializes...
		Which subject of Renaissance advancements do you want
to learn about?
1. Art
2. Architecture
3. Religion
4. Literature
5. Quit the program
Enter the number of your choice:
		Art
The Renaissance affected art more than it did anything else.
Artists now focused on making their art more realistic
than the previous art styles.
1. Back to main menu
2. Quit the program


Create a new paste based on this one


Comments: