
Originally Posted by
lauwy
look @ my command:
But saving a address in a float?

huh ? lol
wt i tried to say is an address MOST of the time contains charecters other than numbers in it, like 1002BAC2. that address CANNOT BE SAVED IN A FLOAT, if you do, what you compiler will do is convert the letters into valid floating point types from this table
http://www.hobbyprojects.com/ascii-t...cii-table1.gif and store them into the float address, or it will NOT except those charecters or letters as a part of the float and will forget about them (depends on your compiler).
what i mean is, if you put an address into this program
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;
void main()
{
while (1)
{
float address;
cout << "input an address : ";
cin >> address;
cout << "here is the address you just typed : " << address << "\n\n" ;
system("pause");
system("CLS");
fflush(stdin);
}
}
this is what you will get
but if you did ur address as a string like this program
Code:
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
void main()
{
while (1)
{
string address;
cout << "input an address : ";
cin >> address;
cout << "here is the address you just typed : " << address << "\n\n" ;
system("pause");
system("CLS");
}
}
this will be you output, and im preaty sure this is what you want
THANK ME CUZ I KNO I HELPED U 
and i did this out of bordum, so talk to me and make me not bored lol