line break

This commit is contained in:
Jidong Xiao
2024-01-08 00:13:26 -05:00
parent 21fd8dfbdd
commit 3a9baa135d

View File

@@ -285,7 +285,7 @@ object. There are several ways of constructing string objects:
## 1.15 Another Sample C++ Program: Reading From & Writing To Files ## 1.15 Another Sample C++ Program: Reading From & Writing To Files
This [example program](getline.cpp) is the starting point to most of your homeworks. It shows how you can read information from a file, and write information into another file. The STL streams std::cin & std::cout are used to read data from and write data to the "console". Often, we would rather read data from a file and/or write the output to a file. We can do this using the STL file stream library fstream. And here is an [example program](getline.cpp). Actually, this example program is the starting point to most of your homeworks. It shows how you can read information from a file, and write information into another file.
## 1.16 Two Useful String Functions ## 1.16 Two Useful String Functions