We will have other assignments that you will be asked to do entirely on your own.
llong
and an e-mail address
of Lazurus.Long@dora.milkyway.com
might have these two lines in the file:
llong.EMAIL: Lazurus.Long@dora.milkyway.com llong.ENCRYPTED PASSWORD: askjheuusThe string
askjheuus
is an encrypted version of this
student's password.
When I was setting up the message board, I needed to create a new file that had this same information for each student, but in a different format. In the new file, each student has just one line of information, consisting of the login name, the e-mail address, and the encrypted password, with a single space between each pair of items. So, our imaginary student would have just one line in the new file, looking like this:
llong Lazurus.Long@dora.milkyway.com askjheuus
Note:The program that you write will read all of it's information from the keyboard (cin) and print all of its information to the screen (cout). The only output will be the N lines of information. There should not be any other output. For example, there will not be any messages asking the user to enter the information. The reason for writing the program in this way is so that it can later be used with a file that contains the input information. Later it will also use a file to print the output information. But for now, just use cin and cout.
There are two operations, cin.peek( )
and
cin.ignore( )
that you'll need to use in
this assignment. The operations are not discussed in the reading,
but I will discuss them in class.
This program is essentially what I wrote to transfer your logins from Dora to the message board. The only differences are that I also transferred your first name and that I set things up so that the input and output came from files instead of from the console. We'll see how to do file input/output before the end of the semester, but using the console will do for now.
Documentation.
/***************************************************************** * The program must have a comment at the top, in this exact form. * The comment must contain the same items as Assignment 1A. *****************************************************************/
Check that the program compiles and runs correctly. Submit the program to Dora. She won't do any checking on this one, so make sure that you have completely tested things before submission.