hey Iwant to convert from interger to character
char num[1000];
num=rem;
strrev(num);
what is wrorng whith this form??
warning : warning C4996: 'strrev' was declared deprecated
I can't understand this warning
Hope Help me
Lotus_2011 0 Light Poster
Recommended Answers
Jump to Postitoa is a non-standard function.
Have a look at sprintf instead. http://www.cplusplus.com/reference/clibrary/cstdio/sprintf.html
Jump to PostIf this is C++, best to avoid functions like sprintf.
If your ints are one digit, you can add '0' to them to make them char.
If they are multidigit, you can convert them to a C++ string like this.#include <sstream> #include <string> int i …
Jump to Postfirst thankss for helping but it doesnot reverse the number
say iwant the output ,,, 23
you understand meYou'll have no problem there, you have the World Wide Web at your fingertips and it contains
countless examples of how to reverse strings.
All 10 Replies
hacker9801 49 Junior Poster
Lotus_2011 0 Light Poster
Colin Mac 53 Posting Whiz
Lotus_2011 0 Light Poster
hacker9801 49 Junior Poster
Lotus_2011 0 Light Poster
Colin Mac 53 Posting Whiz
Lotus_2011 0 Light Poster
Necrolis -2 Light Poster
Colin Mac 53 Posting Whiz
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.