All pastes #709726 Raw Edit

Anonymous

public text v1 · immutable
#709726 ·published 2007-09-24 22:26 UTC
rendered paste body
#include <iostream>
#include <string>

using namespace std;

int Translator(int Choice);

int main()
{
    int Choice;
    string Leet;
    int Outcome;
    
    cout << "Hello. What would you like to do: ";
    cout << "\n1 - Normal to leet\n";
    cout << "2 - leet to Normal\n";
    cin >> Choice;
    
    Outcome = Translator(choice);
int x;
cin >> x;
return 0;
}

int Translator(int Choice)
{
    int LorN;
    string Leet;
    switch(Choice)
    {
                  case 1:
                       cout << "What is your sentence?: ";
                       cin >> Leet;
                       LorN = 1;
                       break;
                  case 2:
                       cout << "What is your sentence?: ";
                       cin >> Leet;
                       LorN = 2;
                       break;
                  default:
                          cout << "this isnt an option please choose again.";
}

if (LorN != 1 && LorN > 2)
{