Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
718 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int identification();
    int readId();
    cout << "Enter name and press '.' at the end:"<<endl;
    bool strValid = false;
    while (!strValid)
    {
        char inputChar = getc(stdin);
        if (inputChar < 'A' || inputChar>'Z')
        {
            continue;
        }
        bool scanningActive = true;
        while (scanningActive)
        {
            char inputChar = getc(stdin);
            if (inputChar == '.')
            {
                strValid = true;
                break;
            }

            if (inputChar < 'a' || inputChar>'z')
            {
                break;
            }
        }
        
    }

    return 0;
}