My problem is
i want to change each number in string to character that i had assigned as char something[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ";.
for people who dont understand what i mean, here is an example,
array[0]=44, array[1]=11, array[2]=00, array[3]=13, so this is the fomula tat i want to use :
output for 44 is (44-26)+65 = 83, for character 83 = s, for 11 is 11+65 = 76 is character L, 00 is A because 00+65, and the last is 13 + 65 = 78 which is N.
the final output will be S L A N.
Code:int ifEven(string str) { string array[15]; char something[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i=0; int k=0; while(i<str.size()-1) { array[k]=str.substr(i,2); cout<<array[k]<<" "; i+=2; k+=1; } }



LinkBack URL
About LinkBacks
My problem is


