Write a program that reads characters from the standard input to end-of-file.

For each character, have the program report whether it is a letter. If it is a letter, also report its numerical location in the alphabet.

For example, c and C would both be letter 3. 

Incorporate a function that takes a character as an argument and returns the numerical location if the character is a letter and that returns –1 otherwise. 




7. 표준 입력으로부터 파일의 끝까지 문자들을 읽는 프로그램을 작성하라. 이 프로그램은 각각의 문자들에 대해 글자인지 아닌지 보고해야한다.

또한 그것이 글자이면 그 글자의 알파벳 순서를 보고해야한다. 예를들어 c나C는 둘 다 글자이고 알파벳 순서는 3이다.

하나의 문자를 전달인자로 사용하고, 그것이 글자이면 그 글자의 알파벳 순서를 리턴하고, 아니면 -1을 리턴하는 함수를 작성하여 프로그램에 사용하라.



이게 해석본이고 위가 영어인데,

파일의 끝까지 문자들을 읽는 프로그램을 작성하라는게 무슨말인가요 ?

글자이면 알파벳순서를보고하고, -1을 리턴하는 함수까진 이해하겠는데, 파일의 끝까지 문자들을 읽는다

이게 뭔말인가요 ?