Home  |   Notes  |   Languages  |   Programs  |   Homework

Newline characters

New Message Reply About this list Date view Thread view Subject view Author view

Jonathan Berkowitz (jberkowi@VT.EDU)
Thu, 27 Sep 2001 19:34:34 -0400


Message-ID:  <000001c147ac$f6e8e650$3d4723d0@Jon>
Date:         Thu, 27 Sep 2001 19:34:34 -0400
From: Jonathan Berkowitz <jberkowi@VT.EDU>
Subject:      Newline characters

I am still trying to finsh up program 1 and was having trouble dealing
with newline characters. I know there are a couple ways to test for the
end of line and I have tried using eoln and ord but for some reason I
will read in a newline character one time and my program will say it is
an invalid token and then the next time it will recongize it as an end
of expression token. Both times I output the character and both time it
is the same character. I assume there is just one newline character at
the end of a line. Is there something I am missing here or any possible
explanation to why this is happening? Any help would be appreciated.



New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>