Colour Theme Font Size Options
 
 
 
CS110 Lab 4

Lab #4: File I/O and String Functions

In this lab, you will practice simple C++ string operations and C++ file input and output.
Here is a list showing what you need to learn:

  • File Input and Output
    • Prepare your input files
    • Use <fstream> variables in your program
    • Produce the output file
  • String Operations
    • Using .length() and .size() functions
    • Using .find() and .substr() functions
    • Using string operators to copy and combine strings