C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
| #include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int main(){
char s[10],p[10];
int i,t=0;
gets(s);
for (i=9; i>=0; i--){
strcpy(s[t], p[i]);
t++;}
cout << p;
return(0);} |
|
в цикле пытаюсь перевернуть строку...