: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

where INTEGER is 5
SUFFIX is than 'th'

so STRING is 5th

Recommended Answers

All 6 Replies

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 ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.