# include
using namespace std;
Int main () {
int i;
String s;
Char a, [I].
for(i=0; A [I]=='. '. I++) {
Cin> A, [I].
S=a [I];
}
}
CodePudding user response:
Inside this compilation pass, I was in a [I] variables, there should be a constant or # define array definitionsCodePudding user response:
The original poster is to want to enter multiple characters to. End of the period, and then formed string to string s?In the code error is more,
CodePudding user response:
# include
# include
using namespace std;
Int main () {
String s;
Unsigned char a, [200].
Memset (a, 0 x0, 100);
for(int i=0; Cin> A [I] & amp; & (a [I]!='. '); I++) {
S +=a, [I].
}
Coutgetchar();
getchar();
}