The first function is work out a [0], a [1], [2] a... A [31] respectively output
Then the function of b [0], [1] [2] b b computing
I am a rookie, detailed process
The UpdateData (true);
UINT32 n;
int i;
Int a, [32].
Int b [3].
Cstrings input1.
Input1=input;
Input1. Remove (");
Input1. MakeReverse ();
Int nlenght=input1. GetLength ();
for (i=0; i
Cstrings one;
One=input1 [I];
A [I]=atoi (one);
}
B [0]=[0] * 2 + a, [1].
B [1]=[2] [3] a * * 4 + 2 + a, [4].
B [2]=[5] [6] a * * 4 + 2 + a, [7].
M1. The Format (" % d % d % d ", "b" [0], [1], b b [2]).
SetDlgItemText (IDC_EDIT1, m1);
M3. The Format (" % d % d ", a [8], a [9]);
SetDlgItemText (IDC_EDIT3, m3);
The m4. The Format (" % d % d ", a [29], a [30]);
SetDlgItemText (IDC_EDIT4, m4);
CodePudding user response:
Void: XXX: Fun (cstrings input1, int * a, int * b){
Input1. Remove (");
Input1. MakeReverse ();
Int nlenght=input1. GetLength ();
for (i=0; i
Cstrings one;
One=input1 [I];
A [I]=atoi (one);
}
B [0]=[0] * 2 + a, [1].
B [1]=[2] [3] a * * 4 + 2 + a, [4].
B [2]=[5] [6] a * * 4 + 2 + a, [7].
}
The UpdateData (true);
UINT32 n;
int i;
Int a, [32].
Int b [3].
Fun (input, a, b);
M1. The Format (" % d % d % d ", "b" [0], [1], b b [2]).
SetDlgItemText (IDC_EDIT1, m1);
M3. The Format (" % d % d ", a [8], a [9]);
SetDlgItemText (IDC_EDIT3, m3);
The m4. The Format (" % d % d ", a [29], a [30]);
SetDlgItemText (IDC_EDIT4, m4);