Hi,
Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment
chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group. 6 2180
Vidya wrote: Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group.
Wrong group. Please ask in microsoft.public.vc.ide_general
V
Vidya wrote: Hi,
Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group.
some code
...
...
...
#if 0
this code is 'commented out'
...
...
...
#endif
some more code
....
....
The '#if 0' appraoch works for any C/C++ compiler.
Regards,
Larry
On Thu, 04 Aug 2005 02:15:36 GMT, Larry I Smith
<la***********@verizon.net> wrote in comp.lang.c++: Vidya wrote: Hi,
Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group.
some code ... ... ... #if 0 this code is 'commented out'
No, it is not.
... ... ... #endif some more code ... ...
The '#if 0' appraoch works for any C/C++ compiler.
Regards, Larry
There are differences. Code that is conditionally excluded can
generate parse errors from the preprocessor. That is because the
preprocessor must parse it, looking for a corresponding #endif, or
even more nested #if or #ifdef and #endif pairs.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jack Klein wrote: On Thu, 04 Aug 2005 02:15:36 GMT, Larry I Smith <la***********@verizon.net> wrote in comp.lang.c++:
Vidya wrote:Hi,
Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group.
some code ... ... ... #if 0 this code is 'commented out'
No, it is not.
... ... ... #endif some more code ... ...
The '#if 0' appraoch works for any C/C++ compiler.
Regards, Larry
There are differences. Code that is conditionally excluded can generate parse errors from the preprocessor. That is because the preprocessor must parse it, looking for a corresponding #endif, or even more nested #if or #ifdef and #endif pairs.
Details, details.....
Yes, you're correct. However the OP asked how to "comment/uncomment
chunks of code". Although the approach is not a comment, it
accomplishes the OP's goal, and is an often used technique.
Regards,
Larry
"Vidya" <kv****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com... Hi,
Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group.
Ctrl+K, Ctrl+C (comment) and Ctrl+K, Ctrl+U (uncomment) works in MSVC++ 7.0
and may work in 6.0.
-Kelly
Kelly Walker wrote: "Vidya" <kv****@gmail.com> wrote in message news:11**********************@g44g2000cwa.googlegr oups.com... Hi,
Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ?
Thanks, Vidya.
ps: apologies if wrong group.
Ctrl+K, Ctrl+C (comment) and Ctrl+K, Ctrl+U (uncomment) works in MSVC++ 7.0 and may work in 6.0.
It doesn't. And your answer is OT anyway. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dhruv |
last post by:
I was wondering if anyone could compile this code for me on VC.
The problem that I've run into is that VC++6 does not support templates
fully, and so, I cannot get this to compile, which relies...
|
by: James Cameron |
last post by:
Hi I'm developing a program and the client is worried about future
reuse of the code. Say 5, 10, 15 years down the road. This will be a
major factor in selecting the development language. Any...
|
by: Jason |
last post by:
Hi,
I need a way to use random numbers in c++. In my c++ project, when using
the mingw compiler I used a mersenne twister that is publicly available and
this did its job well. Now I have...
|
by: suri |
last post by:
Hello
I downloaded glibc and tried looking for the code that implements the
sine function
i couldnt find the file.
i went to the math directory and found math.h.. i guess that needs to be...
|
by: David Allmond |
last post by:
I have been looking at various info about VS 2005 and I keep seeing that the
XML code comment generation is being extended to VB.NET, but there seems to
be no mention of it correctly supporting C...
|
by: Ray Cassick \(Home\) |
last post by:
I have been using XML Comments in VB.NET during my time with VS.NET 2003
thanks to VBXC and NDoc. I just started to upgrade one of my projects into
VB.NET 2005 and am seeing some odd errors...
|
by: hobbes_7_8 |
last post by:
Hi everybody!
This is basically a pre-processor doubt. I have this very simple
define:
#ifdef NDEBUG
#define QTRACE //
#else
#define QTRACE qDebug()
#endif
|
by: babyip |
last post by:
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...
|
by: vrsathyan |
last post by:
Hi..,
While executing the following code in purifier..,
std::vector<int> vecX;
vecX.clear();
int iCount = 0;
{
int iVal;
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |