Thread: removing comments of type '//' and '/*'

  1. #1
    Registered User
    Join Date
    Oct 2007

    removing comments of type '//' and '/*'

    i want to write a program that takes a file having comments and removes

    the comments and prints the c source code file into the other file

    please provide code or link
    prethanks to the helper

  2. #2
    Registered User
    Join Date
    Aug 2007
    i can already see the replies. Let me save them the time.
    They are not going to give u code. you will have to write it and they will correct
    Last edited by taurus; 10-19-2007 at 10:06 AM.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Don't spam the same question in many forums (see rules).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed