Can anyone help me to convert from binnary to octal or hexadecimal in c++??
Lotus_2011 0 Light Poster
Recommended Answers
Jump to PostThats good if your just trying to print the values, but to actually convert between the different bases I think you have to make your own functions. I have already made them :)
#include<iostream> using namespace std; template<class t> inline char *toBase(t val, int base, char *values) …
All 4 Replies
Radical Edward 301 Posting Pro
Lotus_2011 0 Light Poster
William Hemsworth 1,339 Posting Virtuoso
Lotus_2011 0 Light Poster
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.