Ak1na @ 2022-10-28 23:17:06
#include<iostream>
using namespace std;
char n[5];
int main()
{
int i = 0;
for (; i <= 4; i++)
{
cin.get(n[i]);
}
for (; i >=0; i--)
{
cout << n[i];
}
return 0;
}
by LX_zxy @ 2022-10-28 23:42:46
《哥哥(们)的力量》
by Ak1na @ 2022-10-28 23:50:51
#include<iostream>
using namespace std;
char n[5];
int main()
{
int i = 0;
for (; i <= 4; i++)
{
cin.get(n[i]);
}
for (; i >=1; i--)
{
cout << n[i-1];
}
return 0;
}
by Ak1na @ 2022-10-28 23:51:50
@Ak1na 哥哥们这样可以吗我应该是输入时i加到5了,输出时n[5]直接爆了