: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
: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
have to forget about classes not allowed
anything else???
Then what are your strings? What code do you have that makes an attempt?
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
>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.
Sorry posted by mistake ...
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.