// File Name: conversion.cpp #include using namespace std; // The program takes as input a character and displays what it is cast into // an integer data type. int main() { int number; char character; cout << "Type in a character:\n"; cin >> character; // explicitly cast the character into an integer to output decimal number = static_cast(character); cout << "The character '" << character; cout << "' is represented as the ASCII decimal number "; cout << number << " in the computer.\n"; int temp; cin >> temp; return 0; }