Sollicitatievraag bij Amazon

Write a function that takes an integer and returns the string representation of the integer.

Antwoord op sollicitatievraag

Anoniem

14 nov 2011

string GetStringValue(int Number) { string str=" "; char ch=' '; if(number>=0 && number=-9 && number0) { mode=number%10; number=number/10; ch=mode+'0'; str+=ch; } return reveres(str); }

1