#include "stdafx.h" #include #include using namespace std; void funkce (char * pole, char * pole1, int velikost ) { cout << "neco zadej" << endl; cin >> setw(30)>> pole; int velikost1= strlen(pole); for (int i=0; i < velikost1; i++) { pole1[velikost1-i-1]= pole[i]; } cout << pole1 ; } int _tmain(int argc, _TCHAR* argv[]) { char pole [30]; char pole1[30]; funkce (pole,pole1,30); system ("pause"); return 0; }