Posted by G on 17:40:00 06-04-2003
i got this question from an assisgnment and no body in my class seems to know what is going on the qeuestion is:
wrtie a pretty pointer to tidy up a general c program, it must indent lines following a '{' by three spaces and maintain this indentation until a line ends with a '}'.
if another '{' is encountered before a '}' indent the text further by three spaces, the text scanned should be completely unformatted and read your data from the file one line at a time and place it in an array od strings about 100 elements.
if any of you guys/girls could help if would be much appreciated as i need this paper to pass?
cheers
G
Posted by dxprog on 21:24:00 06-04-2003
Well, it sounds like they want you to set your tab to three places and load a file into an array.
[addsig]
Posted by Smerdyakov on 22:59:00 06-04-2003
If this is for a class, then why are you asking us instead of an instructor?