Cauti un cs bun?
Te-ai saturat de toate cs-urile modificare, sa iti sara tinta si alte probleme??
Am gasit eu un cs bun si il pun pe site pentru download.
Download: Uploads ||
Game Front
Penulis : Gheby ~ Sebuah blog yang menyediakan berbagai macam informasi
Artikel
Counter Strike 1.6 ini dipublish oleh
Gheby pada hari
vineri, 2 martie 2012. Semoga artikel ini dapat bermanfaat.Terimakasih atas kunjungan Anda silahkan tinggalkan komentar.sudah ada
1comentarii: di postingan
Counter Strike 1.6
#include
RăspundețiȘtergere#include
#include
using namespace std;
int main(){
char s[100], *p;
int key, input;
/*//cout << "Introduceti textul pentru codificare:" << endl;
//cin.get(s, 100);
//cout << endl << "Introduceti cheia: ";
//cin >> key;
//strupr(s);
for( p = s; *p; p++ )
{
if(isalpha(*p))
{
*p = ( *p - 'A' + key ) % 26 + 'A';
}
if( *p >= '0' && *p <= '9' )
{
*p = ( *p - '0' + key ) % 10 + '0';
}
}
cout << endl << "Textul codificat este:" << endl << s << endl;
for( p = s; *p; p++ )
{
if(isalpha(*p))
{
*p = ( *p - 'A' + 26 - key ) % 26 + 'A';
}
if( *p >= '0' && *p <= '9' )
{
*p = ( *p - '0' + 10 - key ) % 10 + '0';
}
}
cout << endl << "Textul decodificat este:" << endl << s << endl;
*/
cout << "1.Introducere text pentru codificare/decodificare." << endl;
cout << "2.Alege cheia." << endl;
cout << "3.Codifica textul." << endl;
cout << "4.Decodifica textul." << endl;
cout << "Choice: ";
//cin >> input;
do
{
cin >> input;
if(input == 1)
{
cout << "Introduceti textul:" << endl;
cin.get(s, 100);
strupr(s);
}
if(input == 2)
{
cout << "Introduceti cheia: ";
cin >> key;
}
if(input == 3)
{
for( p = s; *p; p++ )
{
if(isalpha(*p))
{
*p = ( *p - 'A' + key ) % 26 + 'A';
}
if( *p >= '0' && *p <= '9' )
{
*p = ( *p - '0' + key ) % 10 + '0';
}
}
cout << endl << "Textul codificat este:" << endl << s << endl;
}
if(input == 4)
{
for( p = s; *p; p++ )
{
if(isalpha(*p))
{
*p = ( *p - 'A' + 26 - key ) % 26 + 'A';
}
if( *p >= '0' && *p <= '9' )
{
*p = ( *p - '0' + 10 - key ) % 10 + '0';
}
}
cout << endl << "Textul decodificat este:" << endl << s << endl;
}
}while( input == 0);
system("pause");
return 0;
}