part of an array to integer?
Hello, does anyone know if it is possible to convert part of an array e.g Sarray to Sarray to a single integer variable to perform calculation.
Am trying to do a calculator in mfc with buttons (nothing to hide.. its a homework) but the teacher doesnot code in cpp, so i have no choice except to code in vb which i don't code in. despite the teacher want to help me he can't since its cpp.
Am doing it using mfc.
my algo is as follows....
Assume am pressing button 5 , three times
char Sarray  //max numbers on display
when button 5 press
put Sarray[1 to counter] in actualnum; //where am having trouble
The above doesnot have any real codes, except for the int and char etc.., i can manage with the rest, just wrote them in simple english for the easy understanding, Am stuck in the part where i would need to combine the