wxString IntToStr(int i)
{
wxString Result;
Result = Result.Format("%d",i);
return Result;
}
{
wxString Result;
Result = Result.Format("%d",i);
return Result;
}
Title: How to Convert Integer to String
it can be done with
wxString Result;
int i;
Result<<i;
>
Title: Submit Comment
Why not:
wxString IntToStr(int i)
{
return wxString::Format("%d", i);
}
shorter, clearer?
Regards,
Diaa Sami
Submit a comment with your feedback/suggestions.
Click to View Printer Friendly Version