diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-15 03:50:43 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-15 03:50:43 +0200 |
commit | 6ed9a9699997a2853ec1c9e91747c251e5cfc97b (patch) | |
tree | 56c96f18442fb06aeeb45cadc56355353a63ee99 /ccc/float_int.cc | |
parent | 258e1b92ebbfdebefabc120969ab87c3d8b75c3d (diff) |
damn
Diffstat (limited to 'ccc/float_int.cc')
-rw-r--r-- | ccc/float_int.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ccc/float_int.cc b/ccc/float_int.cc deleted file mode 100644 index 9d0ece4..0000000 --- a/ccc/float_int.cc +++ /dev/null @@ -1,26 +0,0 @@ -#include <iostream> - -using namespace std; - - -int main(void) -{ - int a = 1; - int b = 2; - double q = (double)a/b; - cout << q << endl; - - cout << 1 - (float)a/b << endl; - - float x = 0.1; - unsigned y = 105; - unsigned z = x*y; - cout << z << endl; - - float u = -1; - if (u) cout << "XXXXXX" << endl; - - float j = 0.0; - if (j) cout << "j" << endl; -} - |