Skip to content

Commit

Permalink
Merge pull request mouredev#6144 from Andres298/patch-3
Browse files Browse the repository at this point in the history
Reto mouredev#1 - C++
  • Loading branch information
kontroldev authored Dec 24, 2023
2 parents 0ef28c8 + cbce457 commit 70bdbcb
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions Retos/Reto #1 - EL LENGUAJE HACKER [Fácil]/c++/andres298.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#include <iostream>
#include <string>
#include <map>

using namespace std;

map <char, string> diccionario = {
{'a', "4"},
{'b', "I3"},
{'c', "["},
{'d', ")"},
{'e', "3"},
{'f', "|="},
{'g', "&"},
{'h', "#"},
{'i', "1"},
{'j', ",_|"},
{'k', ">|"},
{'l', "1"},
{'m', "/\\/\\"},
{'n', "^/"},
{'o', "0"},
{'p', "|*"},
{'q', "(_,)"},
{'r', "I2"},
{'s', "5"},
{'t', "7"},
{'u', "(_)"},
{'v', "\\/"},
{'w', "\\/\\/"},
{'x', "><"},
{'y', "j"},
{'z', "2"},
{'1', "L"},
{'2', "R"},
{'3', "E"},
{'4', "A"},
{'5', "S"},
{'6', "b"},
{'8', "T"},
{'9', "g"},
{'0', "o"},
{' ', " "}
};


int main()
{
string text;
string textb = "";
cout << "Inserte el texto a traducir: ";
getline(cin, text);
for (char character : text) {
textb += diccionario[character];
}
cout << text << " significa " << textb << " en lenguaje leet";
}

0 comments on commit 70bdbcb

Please sign in to comment.