This is a simple game I'm writing to test the idea of using games to teach C++. https://learncodethehardway.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
227 B

#include <iostream>
using namespace std;
int main()
{
double d = 0;
while(cin >> d) {
int i = d;
char c = i;
cout << "d==" << d
<< " i==" << i
<< " c==" << c
<< " char(" << c << ")\n";
}
}