Around 03:39pm on Friday, August 07, 2009 (UK time), Lori Nagel scrawled:

> I ran it on my computer (Linux, gcc compiler pentium 4) and I got 
> how are u
> 
> apparently in my case double and float is  not the same thing. 

If they were defined as the same thing it would be pointless having two
different words for them.

Try compiling and running:


#include <iostream>

using namespace std;

int main ()
{
  cout << "size of float: " << sizeof(float) << endl;
  cout << "size of double: " << sizeof(double) << endl;

  return 0;
}


Steve

-- 
 
 Play Champions - my free football predictions game at:
        http://www.stevesearle.com/champs/about.html

 15:50:25 up  1:31,  1 user,  load average: 0.02, 0.12, 0.15

Reply via email to