visual c++ 6 comment question

B

babyip

Hello, does vc++ 6 provide a fastest way to comment multiple lines using a
shortcut-key function?

For example, in vs2005, I can comment multiple lines using CTRL+K+C
shortcut-key, how can i do this in vc++6?

Please advise.
 
S

Salt_Peter

babyip said:
Hello, does vc++ 6 provide a fastest way to comment multiple lines using a
shortcut-key function?

For example, in vs2005, I can comment multiple lines using CTRL+K+C
shortcut-key, how can i do this in vc++6?

Please advise.


What does the question have to do with C++?
/*
comment
*/
 
R

Ron Natalie

David said:
Multi-line comments are done by preceding them
with /* and following with */

Please read the welcome message posted twice per week in comp.lang.c++ under the subject "Welcome to comp.lang.c++! Read this first." or available at
http://www.slack.net/~shiva/welcome.txt

The only problem is comments don't nest, so if there are comments int he
code you are trying to disable, it won't work.


Consider using
#if 0

#endif

if you want to disable code.
 
B

benben

Multi-line comments are done by preceding them
with /* and following with */

This may not work if the enclosed code has */ token. A more effective
way to do it is through preprocessor macro:

#if 0 // commenting out

stuff I don't want...

#endif

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top