Last change
on this file since 204 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2] | 1 | //menu
|
---|
| 2 |
|
---|
| 3 | #include <iostream>
|
---|
| 4 | #include <string>
|
---|
| 5 | #include <fstream>
|
---|
| 6 |
|
---|
| 7 | using namespace std;
|
---|
| 8 |
|
---|
| 9 | void Intro() {
|
---|
| 10 |
|
---|
| 11 | cout << "---------------------------------------------" << endl
|
---|
| 12 | << "| University of Leiden |" << endl
|
---|
| 13 | << "| Programmeermethoden opdracht 2 |" << endl
|
---|
| 14 | << "| |" << endl
|
---|
| 15 | << "| Gemaakt door: |" << endl
|
---|
| 16 | << "| Rick van der Zwet |" << endl
|
---|
| 17 | << "| Pascal de Vos |" << endl
|
---|
| 18 | << "| |" << endl
|
---|
| 19 | << "| |" << endl
|
---|
| 20 | << "| Getest op: Unix systeem (Sun OS) |" << endl
|
---|
| 21 | << "| Windows systeem (Win XP) |" << endl
|
---|
| 22 | << "---------------------------------------------" << endl
|
---|
| 23 | << endl;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | Int KeuzeMenu()
|
---|
| 27 | {
|
---|
| 28 |
|
---|
| 29 | int GekozenOptie = 0;
|
---|
| 30 |
|
---|
| 31 | // Menu opties: (1) Encoderen
|
---|
| 32 | // (2) Decoderen
|
---|
| 33 | // (1) --> FileName invoeren --> encodeer sleutel invoeren
|
---|
| 34 | // (2) --> FileName invoeren --> decodeer sleutel invoeren
|
---|
| 35 |
|
---|
| 36 | cout << "Kies uit de volgende opties:" << endl
|
---|
| 37 | << "Encodeer een file (1)" << endl
|
---|
| 38 | << "Decodeer een file (2)" << endl
|
---|
| 39 | << "Beeindig het programma (q)" << endl
|
---|
| 40 | << endl;
|
---|
| 41 |
|
---|
| 42 | cin >> GekozenOptie;
|
---|
| 43 |
|
---|
| 44 | if (GekozenOptie == 1) //door naar encoderen, filenamevrag in encoderen verwerken
|
---|
| 45 | {
|
---|
| 46 | cout << "voer de naam van de te coderen file in" << endl;
|
---|
| 47 | cin >> FileName;
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | if (GekozenOptie == 2)
|
---|
| 51 | {
|
---|
| 52 | cout << "Voer de naam van de te decoderen file in (eindigt op .crp)" << endl;
|
---|
| 53 | cin << FileName.crp;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | else return(1)
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.