Home > database >  The university of Melbourne COMP10002 academic analysis
The university of Melbourne COMP10002 academic analysis

Time:10-23

? Question:
Implement a system according to the instructions to generate a particular format characters

? Analytic:
Stage1:
Read input from the text, ignore to ". "at the beginning of the string, in a single space to replace the possible multiple Spaces, and when the output line character more than 50 characters automatically, a new line in the output lines and the distance from the left margin default has four Spaces,

Stage2:
Expand stage1 program, make its can accept the following command
B after ignoring characters after the current line, jump to the next line began to output
. P to print a blank line, start a new paragraph
The nn will change with the left margin of the distance for nn
W. nn in each one of the biggest width changed to nn

Stage3:
On the basis of the stage2 increase instructions
C centered instruction, will be after the content in the middle of their current row
.h nn title instruction, according to the nn to the back of the content production for the title, there are five highest title

Knowledge is involved:
Character processing, read and write files

CodePudding user response:

Homework assignments, done?

CodePudding user response:

reference 1st floor SuperDay response:
operations, done?
are you done

CodePudding user response:

reference study in home on the second floor, cappuccino reply:
Quote: refer to 1st floor SuperDay response:
operations, done?
are you done


I don't have such a task, the original poster is don't have any idea?

CodePudding user response:

This very simple!
  • Related