Finding

Oct 6, 2014 at 11:07am
can someone help me in creating a C++ program for converting Octal to Hexadecimal..
i looked in the web but all of them are C program..
Oct 6, 2014 at 12:32pm
Please help me guys i really need this in my project.
Oct 6, 2014 at 12:44pm
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <iomanip>


int main()
{
    int x;
    std::cin  >> std::oct >> x;
    std::cout << std::hex << x;
}
77
3f
Oct 7, 2014 at 12:16am
Thank you MiiNiPaa ^_^ really you helped me alot ^_^
Topic archived. No new replies allowed.