Professional Documents
Culture Documents
Семинарска по вовед во програмирање
Семинарска по вовед во програмирање
Семинарска по вовед во програмирање
: 3 2
1765 /
, 2010
.
2 .
:
.
2 .
Y,Z, ,B .
.
, ,
. 9 0, 0 9.
2 .
.
string,
. string- .
.
if
string
string.
.
.
if.
.
.
.
.
#include <cstdlib>
#include <iostream>
using namespace std;
naredba
{
tekst[i] ='3';
}
else
{
if(tekst[i] == '5')
{
tekst[i] = '6';
}
else
{
if(tekst[i] == '6')
{
tekst[i] = '5';
}
else
{
if(tekst[i] == '7')
{
tekst[i] ='8';
}
else
{
if(tekst[i] == '8')
{
tekst[i] = '7';
}
else
{
if(tekst[i] == '9')
{
tekst[i] = '0';
}
}}}}}}}}}}}
}
}
return tekst;
if(tekst[i] == '6')
{
tekst[i] = '5';
}
else
{
if(tekst[i] == '5')
{
tekst[i] = '6';
}
else
{
if(tekst[i] == '8')
{
tekst[i] ='7';
}
else
{
if(tekst[i] == '7')
{
tekst[i] = '8';
}
else
{
if(tekst[i] == '0')
{
tekst[i] = '9';
}
}}}}}}}}}}}
}
}
return tekst;
cin>>n;
if(n==1)
{
cout<<"Vie izbravte tekstot da se kodira:";
cout<<"\n";
cout<<kodiranje(tekst);
cout<<".";
}
else
{
if(n==2)
{
cout<<"Vie izbravte tekstot da se dekodira:";
cout<<"\n";
cout<<dekodiranje(tekst);
cout<<".";
}
else
{
cstdlib iostream.
,
.
. for
string-
. if ili
replace(od pocetok , do krajot , a se zamenuva so , b ,). replace
if
. if 0 9
(if(tekst[i] >= '0' && tekst[i]<='9')),
2
ASCII ( if(i%2==0) {
tekst[i]=tekst[i]+3; ) a x A do X . replace
y z a b Y Z A B.
7|
,
replace a b y z A B Y Z.
if ,
if 3 -3
a x A do X.
if
1 2
.
:
Marjan Tanevski so broj na index 1765 e roden vo Bitola 09 08 1991.
:
Paujdn Tdnhvvkl vo buom qa iqdhx 2856 h uogeq Eiwooa 90 97 2002.
9|