#include <iostream>
#include <cstdint>

using namespace std;

int main()
{
    char ch;
    cout << "Type a character: ";
    cin >> ch;
    cout << "ASCII code: " << static_cast<int16_t>(ch) << endl;
    if (!cin.eof())
        cout << "There are some characters more in stdin file object\n";
    char next_ch;
    cin.ignore(INT64_MAX, '\n');
    //fflush(stdin);
    cin >> next_ch;
    cout << "The next character: " << next_ch << endl;

    return 0;
}