0

:o Hi there!!!!!!
May I ask for help? After holidays all my C++ knowledge gone.
What I need is to create string from integer number and another string as

STRING = INTEGER + SUFFIX
where INTEGER is 5
SUFFIX is than 'th'

so STRING is 5th

4
Contributors
6
Replies
7
Views
12 Years
Discussion Span
Last Post by Talli
0

I think I got it.
It is gone be bite of cheat but will see if will pass (mean tutor will acceppt).
Simple print out first number followed by requered string with suffix.

Anyway thanks for respond

0

>mean tutor will acceppt
Unlikely. I posted an implementation of itoa just this morning that may help you, search the forum and you'll find it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.