Home > Back-end >  Turn to part c string array reverse: what happened
Turn to part c string array reverse: what happened

Time:11-09

This is the topic and the sample output

CodePudding user response:

This pour the array subscript output can be at a time

CodePudding user response:

CodePudding user response:

#include
using namespace std;

Int main (int arg c, char * argv [])
{
Char strOrigin [10].
Cout & lt; <"Input Characters:" & lt; for (int i=0; i<10; I++)
{
Cin & gt;> StrOrigin [I];
}

Cout & lt; <"Input the reaching of reverse (inclusive) :" & lt; int a,b;
Cin & gt;> A. & gt;> b;

Cout & lt; <"The The original input is:";
for (int i=0; i<10; I++)
{
Cout & lt; }
Cout & lt;
for (int i=0; i<10; I++)
{
If (I==a)
{
For (int j=b; J>=a; J -)
Cout & lt; I=b;
}
The else
Cout & lt; }
Cout & lt;
system("pause");
return 0;
}
  • Related