simple-cpp-game-study/PPP3/ex01.cpp

16 lines
227 B
C++

#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";
}
}