Linenumbers.

This is a discussion on Linenumbers. within the C++ Programming forums, part of the General Programming Boards category; 1: Does anybody if it's possible to or reference on how to 2: generate linenumbers???? 3: That indicate on which ...

  1. #1
    Registered User darketernal's Avatar
    Join Date
    Sep 2001
    Posts
    41

    Linenumbers.

    1: Does anybody if it's possible to or reference on how to 2: generate linenumbers????
    3: That indicate on which line you are busy on?
    4:
    5:
    6:
    7:
    8:
    9:
    10:
    11:
    12:
    13:
    14:
    15:
    16:
    17:
    18:
    19:
    20:

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Try this, might not work on your compiler though...

    #include <iostream>
    using std::cout;

    int main() {
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    cout << __LINE__ << endl;
    return 0;
    }
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

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