Presentation is loading. Please wait.

Presentation is loading. Please wait.

WHAT TO HAND IN FOR ASSIGNMENTS & PROJECTS In the body of the email message provide a script in which the executable program created is run with the source.

Similar presentations


Presentation on theme: "WHAT TO HAND IN FOR ASSIGNMENTS & PROJECTS In the body of the email message provide a script in which the executable program created is run with the source."— Presentation transcript:

1 WHAT TO HAND IN FOR ASSIGNMENTS & PROJECTS In the body of the email message provide a script in which the executable program created is run with the source file or files. Do not supply the C-programs produced by Lex or Yacc.

2 TWO NOTES ON PRINTING 1. ECHO. Some of you have already been using this. This is a built-in function available in Lex for your C-code. If the source is from a file, then the statement “ECHO;” echoes the matched source to the screen, i.e. it is equivalent to “printf(“%s”,yytext);”

3 2. PRINTING FROM DOS ON A USB PRINTER To make this work, you need do the following just once. (a) Provide the printer with a share name if it hasn’t already got one. To do this, get to the window for Printers and Faxes, either from the control panel, or if available, using: Start/Settings/Printers and Faxes Right click on the printer, and click on Sharing. Select “Share this printer”, and supply a Share name.

4 (b) Assuming your printer’s share name is (say) “printer4”, enter the following from the Dos command prompt: net use lpt1: \\127.0.0.1\printer4 or, alternatively, if your computer’s system name is (say) mycomputer then enter: net use lpt1: \\mycomputer\printer4 (Your computer’s system name is listed in Accessories/System Tools/System Information)


Download ppt "WHAT TO HAND IN FOR ASSIGNMENTS & PROJECTS In the body of the email message provide a script in which the executable program created is run with the source."

Similar presentations


Ads by Google