I'm using gcc 3.2.3.
I'd like to add some detailed tutorial to my comments about the usage of
the code. The tutoril includes some URI like "./ABC/CDE/*". The compiler
thinks that I am using "/*" in "/* */" and doesn't pass.
Is there any solution to add "/*" in "/* */" comments?
Thanks 9 2168
Morgan Cheng wrote: I'm using gcc 3.2.3. I'd like to add some detailed tutorial to my comments about the usage
of the code. The tutoril includes some URI like "./ABC/CDE/*". The
compiler thinks that I am using "/*" in "/* */" and doesn't pass. Is there any solution to add "/*" in "/* */" comments? Thanks
use //* example: /* //* tutorial //* */
Morgan Cheng wrote: I'm using gcc 3.2.3. I'd like to add some detailed tutorial to my comments about the usage
of the code. The tutoril includes some URI like "./ABC/CDE/*". The
compiler thinks that I am using "/*" in "/* */" and doesn't pass. Is there any solution to add "/*" in "/* */" comments? Thanks
For multi-line comments, I prefer to use "#if 0" and "#endif":
someCode();
#if 0
multiline comment
goes here
#endif
moreCode();
This has several advantages:
-> solves your problem regarding the closing */
-> allows you to create "nested" comments (easier when debugging)
-shez-
Morgan asked: I'd like to add some detailed tutorial to my comments about the usage of the code. The tutoril includes some URI like "./ABC/CDE/*". The compiler thinks that I am using "/*" in "/* */" and doesn't pass. Is there any solution to add "/*" in "/* */" comments?
Is there any reason not to use "//" comments ? Example:
// The files match the pattern ./ABC/DEF/*
David Fisher
Sydney, Australia
shez wrote: Morgan Cheng wrote: I'm using gcc 3.2.3. I'd like to add some detailed tutorial to my comments about the
usage of the code. The tutoril includes some URI like "./ABC/CDE/*". The compiler thinks that I am using "/*" in "/* */" and doesn't pass. Is there any solution to add "/*" in "/* */" comments? Thanks
For multi-line comments, I prefer to use "#if 0" and "#endif":
someCode(); #if 0 multiline comment goes here #endif moreCode();
This has several advantages: -> solves your problem regarding the closing */ -> allows you to create "nested" comments (easier when debugging) -shez-
shez could you illistrate with an example?
shez wrote: Morgan Cheng wrote: I'm using gcc 3.2.3. I'd like to add some detailed tutorial to my comments about the
usage of the code. The tutoril includes some URI like "./ABC/CDE/*". The compiler thinks that I am using "/*" in "/* */" and doesn't pass. Is there any solution to add "/*" in "/* */" comments? Thanks
For multi-line comments, I prefer to use "#if 0" and "#endif":
someCode(); #if 0 multiline comment goes here #endif moreCode();
This has several advantages: -> solves your problem regarding the closing */ -> allows you to create "nested" comments (easier when debugging) -shez-
On Tue, 25 Jan 2005 13:53:51 +1100, "David Fisher" <da***@hsa.com. au>
wrote: Morgan asked:
I'd like to add some detailed tutorial to my comments about the usage of the code. The tutoril includes some URI like "./ABC/CDE/*". The compiler thinks that I am using "/*" in "/* */" and doesn't pass. Is there any solution to add "/*" in "/* */" comments?
Is there any reason not to use "//" comments ? Example:
// The files match the pattern ./ABC/DEF/*
That works for single line comments, but detailed tutorials can be a little
cumbersome. The "#if 0" or "/*" are normally preferred for multi-line, as
they are much easier to work with (especially with word-wrap enabled, as on
most newsreaders.)
As for the OP, GCC 3.4.3 compiles "./ABC/CDE/*" without problem, aside from
an optional warning. It only becomes an issue if you try something fancy
like "/dev/*/*".
puzzlecracker wrote: shez wrote: For multi-line comments, I prefer to use "#if 0" and "#endif":
someCode(); #if 0 multiline comment goes here #endif moreCode();
shez could you illistrate with an example?
He already did!
--
<mailto:di***** ******@yahoo.co m> <http://www.dietmar-kuehl.de/>
<http://www.contendix.c om> - Software Development & Consulting
Dietmar Kuehl wrote: puzzlecracker wrote: shez wrote: > For multi-line comments, I prefer to use "#if 0" and "#endif": > > someCode(); > #if 0 > multiline comment > goes here > #endif > moreCode();
shez could you illistrate with an example?
He already did!
I can't see any /* in the above lines.
Rolf Magnus wrote: Dietmar Kuehl wrote:
puzzlecracker wrote: shez wrote: > For multi-line comments, I prefer to use "#if 0" and "#endif": > > someCode(); > #if 0 > multiline comment > goes here > #endif > moreCode();
shez could you illistrate with an example?
He already did!
I can't see any /* in the above lines.
Here you go: > someCode(); > #if 0 > multiline comment /* dsd */* whatever i want > goes here > #endif > moreCode();
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrea Griffini |
last post by:
I did it.
I proposed python as the main language for our next CAD/CAM
software because I think that it has all the potential needed
for it. I'm not sure yet if the decision will get through, but
something I'll need in this case is some experience-based set
of rules about how to use python in this context.
For example... is defining readonly attributes in classes
worth the hassle ? Does duck-typing scale well in complex
|
by: Trebor A. Rude |
last post by:
I'm new to Perl (although I have about 7 years of C++ experience), and I was
just wondering which of these two equivalent statements the group thinks is
"better", and why:
push @command, map {exists $options{$_} ? ($options{$_}, $comments{$_}) :
()} keys %comments;
push @command, map {($options{$_}, $comments{$_})} grep exists $options{$_},
keys %comments;
|
by: dmiller23462 |
last post by:
Somebody take a look and give me any suggestions? My brain is nuked...
Here's my deal....I have online submission forms on my intranet at
work here....I am appending to an Access DB with the input from all
HTML fields and then querying aforementioned DB with different
variables (search by name, wave, reason, etc). The output that I'm
getting (SELECT * 'cause I need all of the data included in the
search) I would like to display in a nice...
|
by: dmiller23462 |
last post by:
Hey guys, I'm back again....I've got the results displaying that I
wanted but instead of having a "next" or "previous" link displayed I
am getting the error msg below (I actually get the data that I'm
supposed to get meaning that my query seems to be working fine but
instead of making its way to the INCLUDE file (bottom navigation bar)
it displays the following error msg instead of the included nav bar...
***
error '80020009'
Exception...
|
by: James Curran |
last post by:
I'd like to make the following proposal for a new feature for the C#
language. I have no connection with the C# team at Microsoft. I'm posting
it here to gather input to refine it, in an "open Source" manner, and in an
attempt to build a ground-swell of support to convince the folks at
Microsoft to add it.
Proposal: "first:" "last:" sections in a "foreach" block
The problem:
The foreach statement allows iterating over all the...
| |
by: DJ DIGI |
last post by:
Hello Everyone,
I'm attempting to design a small web app to obtain customer feedback.
The issue is when a user inputs >4000 characters in the COMMENTS
section I get the following Err Msg: ORA-01704: string literal too
long.
I am using Visual Studio.Net 2003 (vb as language), SQL+ to create
tables in Oracle 9i, and Access to just link and veiw the tables.
|
by: Gary |
last post by:
Hi all! I've taken some time on learning the difference between
"pointers to const variables" and "const pointer variables". The
question is: in the following code, can we change the contents of the
const pointer (i.e. t)? I got a segmentation fault in the last for
loop.
I wrote the code in c++, but the language is not the point, right? :)
Thanks in advance!
#include <iostream>
|
by: Matthew Wilson |
last post by:
Hi, we are getting a lot of spam through our PHP Feedback form, and have set
up a new field 'prove you're human', asking them to do some simple maths.
What is the command for the PHP script itself, to say "this field must be
equal to 9 or return the error page"?
Thanks!
Matt
|
by: confusedfusion |
last post by:
Not sure how many form submissions that have been lost over the years before I started but the company has a contact form that the required fields when validation fails the error message is going into the URL string on a refresh of the form page.
I am very green on CF and CFM files and have this code below; I need to help for the error messages to "pop up" in a new window or display on the body of the page so anyone filling out the form knows...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |