1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting line number in C++

Discussion in 'C++' started by ballurohit, Mar 7, 2012.

  1. ballurohit

    ballurohit New Member

    Joined:
    Nov 18, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    retired
    Location:
    Gujarat
    QUOTE I am using Turbo C++. But do not have knowledge about how to
    mark the file reading line number in it. So please advice in this regard.
    Yours
    (B.N.ROHIT)
    UNQUOTE
     
  2. ballurohit

    ballurohit New Member

    Joined:
    Nov 18, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    retired
    Location:
    Gujarat
    kindly send the guideline by even Email. My email address is:

    "ballubhai37@gmail.com"

    With kind regards,

    (B.N.ROHIT)
     
  3. johnBMitchell

    johnBMitchell New Member

    Joined:
    Feb 17, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    CA, USA
    Home Page:
    In Turbo C++, you can mark any line by #line LINE_NUMBER “FILE_NAMEâ€. You can get any line number just by click on that line and then you can write that line number in coding of C++ program. You can mark any line from any file just by using this code.
     

Share This Page