C++ Tutorial

Define C++

C++ First Program

Difference C and C++

C++ Operators

C++ Type Casting

C++ Function Overloading

C++ Default Arguments

C++ Inline Function

Define OOP's

C++ Keywords

C++ Classes

Exercise Classes

C++ Nested Classes

C++ Constructors

Exercise Constructor

C++ Friend function

C++ Operator Overloading

Ex: Operator Overloading

C++ Inheritance

C++ this pointer

C++ Polymorphism

Virtual Class & Function

C++ File Handling

Exercise File Handling

C++ Templates

C++ Exception Handling

C++ Graphics

Exercise Graphics

Page Stats

Visitor: 1408

Exercise: C++ File Handling

  1. Input Character and write in a file. Hint: use put() function.
  2. Input String and write in a file. Hint: use put() function inside a loop.
  3. Read a character from a file. Hint: use get() function.
  4. Read a line from a file. Hint: use getline() function.
  5. Input filename and read all its content.
  6. WAP to count number of vowels from a input file.
  7. WAP to count number of characters and words.
  8. WAP to copy contents of one file into another file.
  9. Write a record in a file. Hint: use write() function.
  10. Read a record from a file. Hint: use read() function.
  11. Write and Read a record from a file. (Solution)
  12. Read and Write records from a file using switch case. (Solution)