In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will give you a detailed explanation on how to use the advanced use of Ipicuro in Chammer Craft +. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Overview
The input (input stream) and output (output stream) of C++ are byte sequences that enable data to be transferred sequentially from one object to another. Stream represents the flow of quantitative information from source to destination.
The inputs and outputs of the C++ include:
Standard Icano: input to standard equipment specified by the system
File Icano: input and output to disk files
String Icano: input and output to a specified space in memory
Ipaw O class library
IMap O stream class library:
The header file is the interface between the program and the class library. The interface of the iostream class library is implemented by different files.
Commonly used header files:
Iostream: contains basic information about how to operate on iCompo
Fstream: Icano operation for user-managed files
Strstream: Igamo operation for string streams
Stdiostream: a mechanism for mixed use of C and C++
Iomanip: actions when using formatted Ibank O
Overloading in Ipaw O
In the previous article, we used to implement the output and input of the console.
Overloaded for the output and input of standard type data:
It was originally the left and right shift operators in C++.
Overloaded in the iostream header file
When using it, we must # include
Member functions that overload the displacement operator in the input stream and output stream classes, including:
When ostream operator extracts data from a stream, it usually skips white space characters in the stream, such as spaces, tab keys, line breaks, etc.
Only after entering the data and pressing enter, the data is sent into the keyboard buffer to form the input stream. Extract operator > > to extract data from it
The program will continuously obtain data from the keyboard buffer.
When an invalid character or file Terminator ^ Z is encountered, cin cannot extract data properly, is in an error state, and returns a value of 0 (false)
Case
Enter an uncertain number of grades:
# include # include using namespace std;int main () {/ / define variable double grade; cout > grade) {if (grade > = 85) {cout
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.