rendered paste body#include <iostream>#include <string>#include <iomanip>using namespace std ;namespace{ void Avocat () { cout << "Qu'avez vous à dire ?" << endl ; string Textelu ; cin >> Textelu ; char Lettre; cout << "Je vois... Voilà: " << endl; for ( unsigned i = 0; i < Textelu.length (); ++i) { char Lettre = Textelu [i]; if ( Lettre == ' ') continue; if ( Lettre <= 'P') { Lettre = Lettre + 11 ; cout << Lettre ; } else { Lettre = Lettre - 16; cout << Lettre ; } } } void Prevote () { cout << "Qu'avez vous à dire ?" << endl ; string Textelu ; cin >> Textelu ; char Lettre; cout << "Je vois... Voilà: " << endl; for ( unsigned i = 0; i < Textelu.length (); ++i) { char Lettre = Textelu [i]; if ( Lettre == ' ') continue; if ( Lettre <= 'V') { Lettre = Lettre + 5; cout << Lettre ; } else { Lettre = Lettre - 22; cout << Lettre ; } } } void Crypter () { cout << "Qui êtes vous ?"<< endl; string Choix ; cin >> Choix ; switch (Choix) { case "Avocat" : case "avocat" : Avocat (); break; case "Prevote" : case "prevote" : Prevote (); break; default : cout << "Et mon cul c'est de la morrue ... dégage !!!!!"; } system ("PAUSE"); }}int main (){ Crypter(); return 0;}