#include
#include
using namespace std;
int main()
{
string kalit,matn, s1="", s2="", alifbo="", tayyor="";
cout << "BU DASTURDA INGLIZ TILI ALIBOSIDAN FOYDALANILGAN !" << endl;
cout << "KATTA HARFLARDA MATN KIRITING !" << endl;
alifbo = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
cout<<"kalit so'zni kiriting:"; cin>>kalit;
cout<<"matinni kiriting : "; cin >> matn;
int k=0;
for( int i=0; i < matn.length(); i++)
{
s1=alifbo;
if( k == kalit.length() ) k=0;
s2=s1.substr(s1.find(kalit.at(k))) + s1.substr(0,s1.find(kalit.at(k)));
tayyor += s2.at(alifbo.find(matn.at(i)));
k++;
}
cout<
return 0;
}
DASTUR NATIJASI
Do'stlaringiz bilan baham: |