Privacy and Security Notice

Archived Messages for C_CLASS98@cebaf.gov: Assignment #1

Assignment #1

Dave Buckle (buckle@CEBAF.GOV)
Wed, 25 Feb 1998 14:26:04 -0500

This is a multi-part message in MIME format.
--------------BF1A697BBD675D953C12805F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This message was forwarded by D. Buckle for Dr. Butler.

The due date for the first programming assignment has been changed
from Thursday, 2/25/98 to Tuesday, 3/3/98.

The problem mentions using the macros putchar() and getchar(). Since
these macros write to the screen (standard out) and read from
the keyboard (standard in), the execution of the program would require
the use of redirection for file input and output. That is, if the
name of the executable is check_braces and you want to use it to check
the brace pairings in the file nice_day.c, placing the output in the
file brace_check.out, you would have to execute the program as
follows:

check_braces < nice_day.c > brace_check.out

If, on the other hand, you use file i/o as in the last example from
Chapter 1, the filenames become arguments and the execution of the
program would appear as:

check_braces nice_day.c brace_check.out

I will accept either method.

Dr. C. Allen Butler (757)-727-7700 Voice
Daniel H. Wagner Assoc. (757)-722-0249 FAX
2 Eaton St., Ste. 500 allen@va.wagner.com
Hampton, VA 23669
--------------BF1A697BBD675D953C12805F
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <allen@va.wagner.com>
Received: from jlabh4.jlab.org by jlabs1.cebaf.gov (SMI-8.6/SMI-SVR4)
id NAA28011; Wed, 25 Feb 1998 13:58:30 -0500
Received: from gw.va.wagner.com (va.wagner.com [38.229.53.2]) by jlabh4.jlab.org with SMTP (8.8.6 (PHNE_14041)/8.7.1) id OAA18342 for <buckle@cebaf.gov>; Wed, 25 Feb 1998 14:03:29 -0500 (EST)
Received: (qmail 390 invoked from network); 25 Feb 1998 18:57:40 -0000
Received: from wagner.va.wagner.com (38.229.53.3)
by gw.va.wagner.com with SMTP; 25 Feb 1998 18:57:40 -0000
Received: from localhost by wagner (4.1/SMI-4.1)
id AA01965; Wed, 25 Feb 98 13:13:00 PST
Date: Wed, 25 Feb 1998 13:11:30 -0800 (PST)
From: "Dr. C. Allen Butler" <allen@va.wagner.com>
To: buckle@cebaf.gov
Subject: failure notice (fwd)
Message-Id: <Pine.SUN.3.95.980225131003.1938A-100000@wagner.va.wagner.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Dave:

I understand about the email problems. I tried to send to
c_class98@listserv.cebaf.gov You can read the response that I got.
Could you send out the body of the message contained below?

Thanks,

Dr. C. Allen Butler (757)-727-7700 Voice
Daniel H. Wagner Assoc. (757)-722-0249 FAX
2 Eaton St., Ste. 500 allen@va.wagner.com
Hampton, VA 23669

---------- Forwarded message ----------
Date: 25 Feb 1998 18:15:09 -0000
From: MAILER-DAEMON@gw.va.wagner.com
To: allen@va.wagner.com
Subject: failure notice

Hi. This is the qmail-send program at gw.va.wagner.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<c_class98@listserv.cebaf.gov>:
129.57.33.183 does not like recipient.
Remote host said: 550 <c_class98@jlabs4.cebaf.gov>... User unknown
Giving up.

--- Below this line is a copy of the message.

Return-Path: <allen@va.wagner.com>
Received: (qmail 2087 invoked from network); 25 Feb 1998 18:15:06 -0000
Received: from wagner.va.wagner.com (38.229.53.3)
by gw.va.wagner.com with SMTP; 25 Feb 1998 18:15:06 -0000
Received: from localhost by wagner.va.wagner.com (4.1/SMI-4.1)
id AA01907; Wed, 25 Feb 98 13:09:09 PST
Date: Wed, 25 Feb 1998 13:09:09 -0800 (PST)
From: "Dr. C. Allen Butler" <allen@va.wagner.com>
To: c_class98@listserv.cebaf.gov
Subject: Assignment #1
Message-Id: <Pine.SUN.3.95.980225130823.1902A-100000@wagner.va.wagner.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

The due date for the first programming assignment has been changed
from Thursday, 2/25/98 to Tuesday, 3/3/98.

The problem mentions using the macros putchar() and getchar(). Since
these macros write to the screen (standard out) and read from
the keyboard (standard in), the execution of the program would require
the use of redirection for file input and output. That is, if the
name of the executable is check_braces and you want to use it to check
the brace pairings in the file nice_day.c, placing the output in the
file brace_check.out, you would have to execute the program as
follows:

check_braces < nice_day.c > brace_check.out

If, on the other hand, you use file i/o as in the last example from
Chapter 1, the filenames become arguments and the execution of the
program would appear as:

check_braces nice_day.c brace_check.out

I will accept either method.

Dr. C. Allen Butler (757)-727-7700 Voice
Daniel H. Wagner Assoc. (757)-722-0249 FAX
2 Eaton St., Ste. 500 allen@va.wagner.com
Hampton, VA 23669

--------------BF1A697BBD675D953C12805F--