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

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    6

    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
    Posts
    270
    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
    Location
    The edge of the known universe
    Posts
    39,659
    Don't spam the same question in many forums (see rules).
    http://cboard.cprogramming.com/showthread.php?t=94785
    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