All pastes #825524 Raw Edit

Something

public cpp v1 · immutable
#825524 ·published 2007-12-20 17:16 UTC
rendered paste body
#include <iostream>#include <string>#include <iomanip>using namespace std ;namespace{	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 !!!!!";		}		Systeme ("PAUSE")	}		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 ( char == ' ') continue;			if ( char <= 'P')            {               cout << char ( Lettre + 11 );            }             else            {                         cout << char ( Lettre - 16);            }         }   }      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 ( char == ' ') continue;			if ( char <= 'V')            {               cout << char ( Lettre + 5 );            }             else            {                         cout << char ( Lettre - 22);            }         }   }}int main (){    Crypter();        return 0;}