By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,167 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,167 IT Pros & Developers. It's quick & easy.

Visual Studio activating Line #s

P: n/a
Hi

How can I activate Line #s on Visual Studio 6 pls?

Thanks

Nov 7 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
2005 wrote:
Hi

How can I activate Line #s on Visual Studio 6 pls?
By asking in a Visual Studio group?
--
Ian Collins.
Nov 7 '06 #2

P: n/a
2005 said:
Hi

How can I activate Line #s
C provides the __LINE__ macro for this purpose. For example:

#include <stdio.h>

int main(void)
{
printf("This is line %d of the source file.\n", __LINE__);

return 0;
}

The output of this program on my system is:

This is line 5 of the source file.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 7 '06 #3

P: n/a
How can I activate Line #s on Visual Studio 6 pls?
>From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.

Michael

Nov 7 '06 #4

P: n/a
"Michael" <mc******@aol.comwrites:
>How can I activate Line #s on Visual Studio 6 pls?
>>From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.
Answering off-topic questions is not helpful. This is not the place
to ask about Visual Studio.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 7 '06 #5

P: n/a
On Tue, 07 Nov 2006 09:33:40 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.orgwrote:
>"Michael" <mc******@aol.comwrites:
>>How can I activate Line #s on Visual Studio 6 pls?
>>>From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.

Answering off-topic questions is not helpful. This is not the place
to ask about Visual Studio.
Actually, he didn't answer the question. He redirected the user to a
more appropriate place.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Nov 7 '06 #6

P: n/a
Mark McIntyre <ma**********@spamcop.netwrites:
On Tue, 07 Nov 2006 09:33:40 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.orgwrote:
>>"Michael" <mc******@aol.comwrites:
>>>How can I activate Line #s on Visual Studio 6 pls?

From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.

Answering off-topic questions is not helpful. This is not the place
to ask about Visual Studio.

Actually, he didn't answer the question. He redirected the user to a
more appropriate place.
Hmm. I see your point.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 7 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.