All pastes #825534 Raw Edit

Miscellany

public cpp v1 · immutable
#825534 ·published 2007-12-20 17:29 UTC
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')                        {                             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 ( Lettre == ' ') continue;			if ( Lettre <= 'V')                        {                             cout << char ( Lettre + 5 );                        }                         else                        {                                   cout << char ( Lettre - 22);                        }                }          }          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;}