2
I have the following method that takes two int variables as parameter and I need to concatenate these two values into a char variable*, only for this to be possible it is necessary that these two int variables are converted to char type*.
void exemplo(int amountVariables1, int amountVariables2){
char *strPosition;
//código para conversão de amountVariables1 e amountVariables2.
strPosition = strcat(amountVariables1, amountVariables2);
}
How should I perform the type conversion so that it is possible to concatenate these variables?
Evandro, try to decide whether to do it in C or C++ and use the appropriate tag. (the Portuguese version of the site is still new and good, so no one complains much)
– Kahler
It seems to me that this matter is exactly the same of your other question (although now you have been clearer). If so, do not open multiple questions for the same question, okay? Instead, edit the original question to make it clearer.
– Luiz Vieira