Simple Program for me please?!!

Discussion in 'C' started by ciaran182, Nov 8, 2006.

Thread Status:
Not open for further replies.
  1. ciaran182

    ciaran182 New Member

    Joined:
    Nov 8, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi guys. I have a problem for uni that is simly driving me mad. as someone who is VERY new to the work of C (basic of basic) i need some help.
    Here is the problem:-

    Write a C program that reads a file containing the source of a C program and specifically:
    a. Removes all comments.
    b. Removes all unnecessary spaces and formatting.
    c. Writes the processed code to a second file using a maximum of 80 characters on a line. (Be careful not to break up text strings.)
    d. Takes its input and output filenames as arguments to the program’s command line.

    Thank very much in advance
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You have posted it as an Article under the Article / Source code section. I have moved it to the Queries and Discussion forum.

    You should not be posting the queries in the manner you have done but if you are stuck at any place you can ask the experts. This forum is not for your assignments.

    Thread closed.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice