visual c++ 6 comment question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • babyip

    #1

    visual c++ 6 comment question

    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.


  • David Harmon

    #2
    Re: visual c++ 6 comment question

    On Fri, 13 Oct 2006 16:04:41 +0800 in comp.lang.c++, "babyip" <babyip_at_hot_ mail_dot_comwro te,
    >Hello, does vc++ 6 provide a fastest way to comment multiple lines
    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


    Comment

    • Salt_Peter

      #3
      Re: visual c++ 6 comment question


      babyip wrote:
      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
      */

      Comment

      • Ron Natalie

        #4
        Re: visual c++ 6 comment question

        David Harmon wrote:
        On Fri, 13 Oct 2006 16:04:41 +0800 in comp.lang.c++, "babyip" <babyip_at_hot_ mail_dot_comwro te,
        >Hello, does vc++ 6 provide a fastest way to comment multiple lines
        >
        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

        >
        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.

        Comment

        • benben

          #5
          Re: visual c++ 6 comment question

          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

          Comment

          Working...