#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int tersten(const char* y,int boyut)
{int a = boyut -1;
for(int i = 0;a>=i;a--){
cout << y[a];}
}
int main(){
const char *x;
string str;
int length;
int s=0;
while(1){
cout << "Bir Kelime yazin : ";
cin >> str;
length = str.size();
x = str.c_str();
tersten(x,length);
cout << "\n Cikmak icin 1'e bas : (devam icin herhangi bir rakama basin)\n";
cin >> s;
switch(s){case 1:return 0;
break;
default:break;}
}
system("PAUSE");
return 0;
}
#include <string>
#include <stdlib.h>
using namespace std;
int tersten(const char* y,int boyut)
{int a = boyut -1;
for(int i = 0;a>=i;a--){
cout << y[a];}
}
int main(){
const char *x;
string str;
int length;
int s=0;
while(1){
cout << "Bir Kelime yazin : ";
cin >> str;
length = str.size();
x = str.c_str();
tersten(x,length);
cout << "\n Cikmak icin 1'e bas : (devam icin herhangi bir rakama basin)\n";
cin >> s;
switch(s){case 1:return 0;
break;
default:break;}
}
system("PAUSE");
return 0;
}
