fork download
  1. //
  2. // main.cpp
  3. // LAL
  4. //
  5. // Created by Adam Sheikh on 12/30/14.
  6. // Copyright (c) 2014 Adam Sheikh. All rights reserved.
  7. //
  8.  
  9. #include <iostream>
  10. #include <string>
  11. #include <stdio.h>
  12. #include <istream>
  13.  
  14. using namespace std;
  15.  
  16. void hebrew();
  17. void french();
  18. void italian();
  19. void spanish();
  20. void chinese();
  21.  
  22. int main() {
  23.  
  24.  
  25. cout << "Velcomen to Langvidge Learning App!" << endl << "Type in the number of the language you wish to learn" << endl;
  26.  
  27. cout << "1. Hebrew.\n2. French.\n3. Italian.\n4. Spanish.\n5. Chinese." << endl;
  28.  
  29. int langcode;
  30.  
  31. cin >> langcode;
  32.  
  33. if (langcode == 1){
  34.  
  35. hebrew();
  36. }
  37.  
  38. }
  39.  
  40. void hebrew(){
  41.  
  42. while (true){
  43.  
  44. cout << "Welcome!" << endl;
  45. cout << "Barukh ha-ba!" << endl;
  46.  
  47. cout << "please type in the number of the expression you'd like to translate to Hebrew: " << endl;
  48. cout << "1. Peace. \n2. What's up?\n3. How are you?\n4. Good morning!\n5. What's going on?\n6. How is everything?\n7. Welcome!\n8. What's going on?\n9. What's new?\n10. Miscellaneous." << endl;
  49.  
  50. string phrase;
  51.  
  52. cin >> phrase;
  53.  
  54. if (phrase == "1"){
  55.  
  56. cout << "Peace:\n1. Shalom Aleikhem: Peace upon you! (Traditinal)\n2. Shalom: (Simplified form of the former, most common)\n" << endl;
  57.  
  58. } else if (phrase == "2"){
  59.  
  60. cout << "What's up?:\n1. Ma nishma: Probably the second most popular of greetings. Shortened form of it (Popular only in Tel-Aviv): Ma nish?" << endl;
  61.  
  62. } else if (phrase == "3"){
  63.  
  64. cout << "How are you?:\n1. a: Ma shlomkha (masculine). b: Ma shlomekh (feminine).\n2. Ma shlom kvodo: Meaning \"How is your honor doing?\" said either out of high regards and respect, or out of sarcasm/ironically.\n3. Ma shlom ha-gveret?: How are you doing, Ma'am?\n4. Ma shlom gvirti?: How are you doing, (my) lady?\n5. Ma shlom ha-adon: How are you doing, sir?\n6. Ma shlom adoni?: How are you doing, (my) sir?" << endl;
  65.  
  66. } else if (phrase == "4"){
  67.  
  68. cout << "Good morning!:\n1. Boker tov(meaning: Good morning!). (To answer, we say: Boker or! <meaning: Morning (full) of light!>.\n2. Boker mitzuyan: meaning: (Have an) excellent morning. \n\nGood Evening (As a welcome, unlike goodnight as a fairwell.\n1. Erev tov: Good evening.\n2. Erev mitzuyan: (Have an) excellent evening.\n\nGood afternoon (also good noon or middle of the day):\n1. Tzohorayim tovim.\n\nGoodnight:\n1. Erev tov: Also means'Sweet dreams!'.\n2. Sheina tova: (have a) good sleep!" << endl;
  69.  
  70. } else if (phrase == "exit"){
  71.  
  72. break;
  73. }
  74.  
  75. }
  76.  
  77. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Velcomen to Langvidge Learning App!
Type in the number of the language you wish to learn
1. Hebrew.
2. French.
3. Italian.
4. Spanish.
5. Chinese.