#include <iostream>
#include <string>
#include <vector>
int main() {
std::string tableaux = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789{}_" ;
std::string encode = "GH1H9CB" ;
std::string decode {};
int i = 0 ;
int y = 0 ;
/*while(y != encode.size())
{
if(encode[y] != tableaux[i])
{
i++ ;
}
else
{
decode.push_back(tableaux[i]) ;
y++ ;
}
}*/
std::cout << "Tableax" : << tableaux;
for(char const& letter : tableaux) {
if(letter == encode[i]) {
decode.push_back(encode[i]);
}
i++;
}
std::cout << "resultat : " << decode << "\n";
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: