hello friends this is my answer to dat problem..
i used an integer array for the conversion process.
//(c)dURA
#include<iostream>
using namespace std;
int main()
{
int now,x,j;
begin:
const int size=20;
int no[size]={0};
cout<<"Please enter the integer value : ";
cin>>x;
now=x;
int i=0;
for(i=0;;i++)
{
if (now==0) break;
no=now%16;
now=now/16;
if (now<16 and now>0)
{i=i+1;no=now;break;}
}
cout<<"\nhexadecimal representation of "<<x<<" is 0x";
for(j=i;j>=0;j--)
{
if (no[j]>9)
{
switch (no[j]){
case 10 : cout<<"A";break;
case 11 : cout<<"B";break;
case 12 : cout<<"C";break;
case 13 : cout<<"D";break;
case 14 : cout<<"E";break;
case 15 : cout<<"F";break;
default : cout<<"Z";break;
}
}
else cout<<no[j];
}
cout<<"\n\t\t____\n\n";
goto begin;
}
ela kiri machan.






anyways try this! These are the practical implementations of algorithms you'd need these in the future.

I only need the way to get those important details from da NIC.