Cs.Dgl.Ro (Server CS 1.6)

Am deschis si un server de counter strike 1.6.


Server-ul este off.

Penulis : Gheby ~ Sebuah blog yang menyediakan berbagai macam informasi

Artikel Cs.Dgl.Ro (Server CS 1.6) ini dipublish oleh Gheby pada hari luni, 5 martie 2012. Semoga artikel ini dapat bermanfaat.Terimakasih atas kunjungan Anda silahkan tinggalkan komentar.sudah ada 1comentarii: di postingan Cs.Dgl.Ro (Server CS 1.6)
 

1 comentarii:

  1. #include
    #include
    #include

    using namespace std;

    int main(){
    char s[100], *p;
    int n;
    cout << "Introduceti textul pentru codificare:" << endl;
    cin.get(s, 100);
    cout << endl << "Introduceti cheia: ";
    cin >> n;
    strupr(s);
    for( p = s; *p; p++ )
    {
    if(isalpha(*p))
    {
    *p = ( *p - 'A' + n) % 26 + 'A';
    }
    if( *p >= '0' && *p <= '9' )
    {
    *p = ( *p - '0' + n) % 10 + '0';
    }
    }
    cout << endl << "Textul codificat este:" << endl << s << endl;

    for( p = s; *p; p++ )
    {
    if(isalpha(*p))
    {
    *p = ( *p - 'A' + 26 - n) % 26 + 'A';
    }
    if( *p >= '0' && *p <= '9' )
    {
    *p = ( *p - '0' + n) % 10 + '0';
    }
    }
    cout << endl << "Textul decodificat este:" << endl << s << endl;

    system("pause");
    return 0;
    }

    RăspundețiȘtergere