Java provides three types of comments:
Single-line (c ++-style) CommentsThe simplest comment in Java is the single line comment. It starts with two forward slashes and continues to the end of the line. For example:Figure 1: single-line
This article was transferred from Microsoft MSDN. Note that this is only available on Windows, not on Linux.
#pragma comment (Comment-type [, "commentstring"])
Notes comment-type is one of the predefined identifiers,
Make a message board, comment system, and comment on the message board by using "say more. Using "say more" to make a message board and comment system, the message board comment message board and comment system are often used in website construction,
When you use PowerDesigner to make conceptual and physical model designs for a database, you typically write Chinese in name or comment and write English in code. Name is used to show that code is used in codes, but the text in comment is saved to
This is a creation in
Article, where the information may have evolved or changed. Every once in a while, there's always a nasty post on the web, the idea is that you shouldn't write a comment for the code, the only reason it exists is because the
#pragma comment ( comment-type [, "commentstring"]) The macro places a comment into the object file or executable file.Comment-typeis a predefined identifier that specifies the type of comment, which should
At present, in addition to Tencent Weibo is still in a small range of invited public testing, Sina, NetEase, Sohu has been open to register. This period of time on the domestic micro-blogging service is also very enthusiastic discussion, a variety
Pragma preprocessing instructions
Pragma instructions
CompileProgramWe often use the # pragma command to set the compiler status or instruct the compiler to complete some specific actions.
The following describes some common parameters of
Crazy Java handout (version 3rd). (Li Gang) -- Comment
1. Necessity of annotation:1) You or others can easily understand the process and ideas of this code when restructuring the system.2) increase the readability of your code.3) When an error
I wrote a blog for the first time and shared some experience. When using powerdesigner, PD does not add the name item to the comment by default, therefore, the generated database table does not contain comments for Chinese fields.
I checked it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.