First readCode
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /* Copy input to output:Read one characterWhile (this character is not a file end indicator)Output the characters that
Http://faq.cprogramming.com/cgi-bin/smartfaq.cgi? Answer = 1048865140 & id = 1043284351 & utm_source = newletter & utm_medium = email & utm_campaign = twentyeight-followup
Translated by Hammer and ljbsdu
The use and significance of EOF seems to have
What is here DocumentHere Document is a special redirection method in the Linux Shell, and its basic form is as followsCMD Its role is to pass the contents of the two delimiter (hereDocument content section) to cmd as input parameters.For example,
/** Java as a OJ topic is to enter a number of data, it is not good to judge the input terminator,* Similar to the EOF symbol in C language* Here's a way to provide* */1 ImportJava.util.Iterator;2 ImportJava.util.Scanner;3 ImportJava.util.TreeSet;4 5
0Is an integer constant,
'\ 0'Is a character constant,
NulIs the name of the character constant.
NULLIs a macro defined in several standard headers,
All of these are ** not * interchangeable:
NULL is to be used for pointers only since it may be
In a shell script written by OPS, it is sometimes necessary to put some content directly into a file, such as configuring some content in a shell script to regenerate into a shell script, using the cat command and redirect symbol
Use of the definition symbol. ClassWork {publicfunctionsetXml () {$ _ xml & lt; eofeof ;}} this will display the error cannotreclarefunctionsetxml. but I can use this delimiter in the function, is it possible that the specifiers cannot be used in
Use of the definition symbol. ClassWork {publicfunctionsetXml () {$ _ xml = & lt; eofeof ;}} this will display the error cannotreclarefunctionsetxml, but I can use this delimiter in the function. Is it possible that the delimiter cannot be used
C + + supports two I/O, the first of which is inherited from the C language, and is an object-oriented I/O system defined by C + +.1, int getchar (void), return an integer value, or specify the value as a char variable, because the character is
C ++ File Operations
Address: http://www.layz.net/blog/user1/xuanxuan/archives/2006/67.htmlIn C ++, there is a stream class. All I/O is based on this "stream" class, including the file I/O we want to know, stream has two important operators:
1.
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.