Translation of the character code into a string. The function is useful for dynamic formation of the column name in Excel, etc.

Call:

string ssymbol = ctos(int isymbolcode);


Here:

icymbolcode - character code.

ssymbol is a string variable with the symbol corresponding to the code.


Example:

Form the text address of the Excel cell in the second column in the second row.


int chcolumn = 'A'+1;
stringsymbol = ctos(chcolumn);
string address = ssymbol+itoa(2)+":"+ssymbol+itoa(2);
cout << address;



The message box will display "B2:B2"