[ create a new paste ] login | about

Link: http://codepad.org/NZvqK5bn    [ raw code | output | fork ]

C++, pasted on Jun 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
using namespace std;

typedef float degrees;
typedef float radians;

void foo(degrees d) {
	cout << d << endl;
}

int main() {
	foo(0.0f);
	radians r = 3.14159f;
	foo(r);
}


Output:
1
2
0
3.14159


Create a new paste based on this one


Comments: