#include
#include
#include
using namespace std; // olma==1512131
int main()
{
mapshifr=
{{'A',1},{'a',1},{'B',2},{'b',2},{'C',3},{'c',3},
{'D',4},{'d',4},{'E',5},{'e',5},{'F',6},{'f',6},
{'G',7},{'g',7},{'H',8},{'h',8},{'I',9},{'i',9},
{'J',10},{'j',10},{'K',11},{'k',11},{'L',12},{'l',12},
{'M',13},{'m',13},{'N',14},{'n',14},{'O',15},{'o',15},
{'P',16},{'p',16},{'Q',17},{'q',17},{'R',18},{'r',18},
{'S',19},{'s',19},{'T',20},{'t',20},{'U',21},{'u',21},
{'V',22},{'v',22},{'W',23},{'w',23},{'X',24},{'x',24},
{'Y',25},{'y',25},{'Z',26},{'z',26} };
string b,l; int m;
char Array[100];
cout<<"xabarni kiriting "; cin.getline(Array,100);
for(int i=0; i<=100; i++)
for( auto it=shifr.begin(); it!=shifr.end(); it++)
if(Array[i]==it->first)
cout<second<<" ";
}
#include
#include
#include
#include
using namespace std;
int main()
{
char l,a='3'; int s=0,k,p;
map cod;
for(int i=1, a='a'; i<=26; i++,a++)
cod.insert(pair (a,i));
for(int i=27; i<=28; i++)
{
if(i==27)
cod.insert(pair ('.',i));
else
cod.insert(pair (' ',i));
}
for(auto it=cod.begin(); it!=cod.end(); it++)
cout<first<<" "<second<
cout<<"Matnni kiriting ";
char A[10000],B[10000];
cin.getline(A, 10000);
for(int i=0; i
{
l=tolower(A[i]); cout<
}
cout<
for(int i=0; i
cout<
vector C;
for(int i=0; i<=strlen(B); i++){
if(B[i+1]==' ')
{k=(int)a; C[s]=k; cout<
else {p=10*(int)a+(int)a; C[s]=p; i+=2; cout<
}
/*for(int i=0; i<=C.size(); i++)
for(auto it=cod.begin(); it!=cod.end(); it++)
{ if(C.front()==it->second) cout<first; C.pop();}*/
}
Do'stlaringiz bilan baham: |