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

This is a discussion on removing comments of type '//' and '/*' within the C Programming forums, part of the General Programming Boards category; i want to write a program that takes a file having comments and removes the comments and prints the c ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    Don't spam the same question in many forums (see rules).
    removing comments of type '//' and '/*'
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21