Click here to Skip to main content
15,906,569 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Program that uses LPT port to communicate with a circuit that programs a cpu! Pin
Randor 11-Sep-09 7:15
professional Randor 11-Sep-09 7:15 
GeneralRe: Program that uses LPT port to communicate with a circuit that programs a cpu! Pin
psychegr15-Sep-09 13:02
psychegr15-Sep-09 13:02 
GeneralRe: Program that uses LPT port to communicate with a circuit that programs a cpu! Pin
Randor 16-Sep-09 3:45
professional Randor 16-Sep-09 3:45 
GeneralRe: Program that uses LPT port to communicate with a circuit that programs a cpu! Pin
psychegr17-Sep-09 9:28
psychegr17-Sep-09 9:28 
GeneralRe: Program that uses LPT port to communicate with a circuit that programs a cpu! Pin
Randor 17-Sep-09 17:00
professional Randor 17-Sep-09 17:00 
GeneralRe: Program that uses LPT port to communicate with a circuit that programs a cpu! Pin
psychegr20-Sep-09 4:28
psychegr20-Sep-09 4:28 
QuestionEOF Pin
cdpace2-Sep-09 10:25
cdpace2-Sep-09 10:25 
AnswerRe: EOF Pin
Luc Pattyn2-Sep-09 10:45
sitebuilderLuc Pattyn2-Sep-09 10:45 
Hi,


cdpace wrote:
that keeps reading charachter until the EOF (End of File) Charachter is read.


is not accurate. The end-of-file is not stored as some special character; the file or directory has a length stored somewhere, and getchar() returns characters as long as the file length has not been exceeded; when all data has been returned, the special value "EOF" is returned.

So EOF is NOT a character, it is a special integer value outside the regular character range [0,255], and that is exactly why the return type of getchar() isn't char. Usually EOF equals -1.
But that really is an implementation thing, other platforms might use a different special value; the C specification mandates that the symbol EOF works as documented, without fixing a specific value.

Smile | :)

Luc Pattyn
Badger | [badger,badger,badger,badger...] Jig | [Dance] Badger | [badger,badger,badger,badger...] Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.Jig | [Dance] Badger | [badger,badger,badger,badger...] Jig | [Dance]

GeneralRe: EOF Pin
«_Superman_»2-Sep-09 17:24
professional«_Superman_»2-Sep-09 17:24 
GeneralRe: EOF Pin
David Crow3-Sep-09 2:52
David Crow3-Sep-09 2:52 
GeneralRe: EOF Pin
«_Superman_»3-Sep-09 7:09
professional«_Superman_»3-Sep-09 7:09 
QuestionCapture non-client mouse click on sizable window Pin
Darryl Bryk2-Sep-09 10:22
Darryl Bryk2-Sep-09 10:22 
AnswerRe: Capture non-client mouse click on sizable window Pin
«_Superman_»2-Sep-09 17:29
professional«_Superman_»2-Sep-09 17:29 
GeneralRe: Capture non-client mouse click on sizable window Pin
Darryl Bryk3-Sep-09 9:29
Darryl Bryk3-Sep-09 9:29 
GeneralRe: Capture non-client mouse click on sizable window Pin
«_Superman_»3-Sep-09 17:08
professional«_Superman_»3-Sep-09 17:08 
GeneralRe: Capture non-client mouse click on sizable window Pin
Darryl Bryk4-Sep-09 5:26
Darryl Bryk4-Sep-09 5:26 
QuestionHow to disable control animation, combobox Pin
Moak2-Sep-09 9:58
Moak2-Sep-09 9:58 
AnswerRe: How to disable control animation, combobox Pin
Code-o-mat2-Sep-09 11:46
Code-o-mat2-Sep-09 11:46 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 14:11
Moak2-Sep-09 14:11 
AnswerRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 11:51
professional Randor 2-Sep-09 11:51 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 14:02
Moak2-Sep-09 14:02 
GeneralRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 15:00
professional Randor 2-Sep-09 15:00 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 15:17
Moak2-Sep-09 15:17 
GeneralRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 15:23
professional Randor 2-Sep-09 15:23 
GeneralRe: How to disable control animation, combobox Pin
Code-o-mat2-Sep-09 20:34
Code-o-mat2-Sep-09 20:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.